smtp - Using Javascript to connect with server using protocol other than HTTP -


What JavaScript can be used to connect to a server, which is HTTP or file in addition to the protocol? Ideally, I want to connect to a SMTP server using Javascript.

Browser is not possible due to security constraints, as far as I know, can be done in Flash or Java . Upcoming WebSockets will not help you

Your best option is to make a script call on your server that creates socket connections from the final destination, i.e. SMTP server and then returns the data to the client on HTTP.


Comments