Yes it is possible. But not practical ** See Edit 2
Some HTML5 implementations include web site support, essentially connecting tcp to a server. Add some send / recv code and you can create an SMTP client.
In fact, it looks like nodejs and websocket support were used to implement the smtp client ... see here ...
You still need the smtp server, username, password, etc., like a regular smtp client for it to work.
Using this method for spamming would be unlikely, as your smtp provider could easily cancel your account.
=== EDIT ===
In fact, you could build a version with fewer servers, it would also have to search the name server to find the mx entries. However, there is a possibility that any decent SMTP servers will support spam-list blacklist tables, and connecting from a random IP address will see a message that is usually marked as spam.
Also talking to smtp servers that require secure mail connections can be tricky.
As already mentioned, there are malicious uses in this implementation, such as sending spam. Perhaps you can probably be the creator of the HTML5 botnet, but I would think that you already know about it :)
=== EDIT 2 ===
As mentioned in Mark At Ramp51, manual contact with web slots is required. That was what I did not know about. You will have to hack the websocket implementation to get around the handshake.
The correct way is to send the web server by email.
Jtew
source share