views:

107

answers:

2

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

+1  A: 

No, JavaScript in web browsers does not have access to a TCP/IP API in order to build an IMAP, SMTP, or any other networking application.

You may want to consider using Ajax instead, with which you can send requests to your server, which in turn handles the IMAP or SMTP, and returns responses to the browser.

Daniel Vassallo
A: 

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.

sri