Javascript IMAP和SMTP客户端? [英] Javascript IMAP and SMTP client?

查看:570
本文介绍了Javascript IMAP和SMTP客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以构建一个可以在仅使用Javascript的浏览器中运行的SMTP / IMAP客户端?

Is it possible to build a SMTP/IMAP client that can run in the browser that uses only Javascript?

推荐答案

它是目前无法在浏览器中的普通Web应用程序中执行此操作。但是,可以在可以访问特权api的打包应用程序中执行:

It's currently not possible to do in a normal web app in the browser. It is however possible to do in packaged apps with access to privileged apis:

  • Firefox Apps use the emerging W3C standard (TCPSocket): https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket
  • Chrome Apps use a proprietary api (chrome.socket): https://developer.chrome.com/apps/socket

如果您正在寻找经过实战验证的图书馆, whiteout.io 在纯JS中开发并维护经过良好测试的IMAP / SMTP / MIME-codec实现:

If you're looking for a battle proven library, whiteout.io develops and maintains a well tested IMAP / SMTP / MIME-codec implementation in pure JS:

http://emailjs.org

这是麻省理工学院的许可和免费使用。

It's MIT licensed and free to use.

这篇关于Javascript IMAP和SMTP客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆