Just out of curiosity and some experimentation of mine, i'd like to know what it would take to build an STMP client on the browser. A few years ago this was nearly impossible but now almost every browser in the planet seems to have implemented web sockets so i can only assume this should be possible. I'd like to know some exact details on how to implement this without digging through the RFC for SMTP (RFC-2821) and confuse myself even more. I have learnt over the years how to work with the HTTP protocol from sniffing HTTP Packets and trying to understand the protocol from what the web browser is sending and what my server is expecting and I was wondering if i could use the same technique to demystify the SMTP protocol. I also remember some 10 years ago, i used to send emails from windows command prompt via telnet using free publicly available smtp relay servers and i'm sure i can still remember a few commands. How do i mesh all these together...say in javascript.
I'll be happy to know if anyone has tried this and is willing to share some knowledge on this.