Javascript IMAP and SMTP client? [closed]
Asked Answered
D

2

23

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

Drub answered 23/9, 2010 at 3:4 Comment(6)
What about using signed Javascript, Flash, or the eval function in a creative way?Drub
With flash and Java it would be possible. Using JavaScript's eval() function won't do it however.Magdalenemagdalenian
Remove the XSS tag, the question has nothing to do with XSS.Yesseniayester
what about trusted Javascript?Drub
SSL support ? anyone ?Stale
I don't think this question should have been closed.Turenne
W
16

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:

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: emailjs.

It's MIT licensed and free to use.

Wrong answered 27/5, 2013 at 19:14 Comment(3)
Note to those (like me) looking to do this in a web page: this only works with Firefox the OS (not Firefox the browser) and Chrome extensions.Alyosha
I contacted Andris Reinman a few days ago and he confirmed that "BrowserBox supports the latest versions of the browsers" when I asked him which versions of Firefox, Chrome and MSIE it supports.Selenium
From whiteout.io: As of January 1st 2016 the Whiteout Mail service is no longer available.Guild
Y
7

Agree with Daniel, its not possible in javascript.

There is a new WebSockets API that's going to be added to browsers to allow communication over sockets, but even after that is introduced it will NOT be possible. WebSockets API goes to great lengths to ensure such a thing is not possible, because it is a security risk.

Yesseniayester answered 23/9, 2010 at 7:39 Comment(2)
What is the risk? I keep reading this but I can't get it. Is it all about the handshake?Penitential
@themihai, the key risk, I believe, is phishing - or the art of gaining access to privileged information through appearing genuine or passing for other websites. Or spamming, that too.Diametral

© 2022 - 2024 — McMap. All rights reserved.