Okay, here we go! This took me way too long!
Here’s a nice overview of what SMTP servers expect protocol wise:
http://www.smtp2go.com/articles/smtp-protocol
Make sure you base64 encode your username / password ahead of time (node.js example):
new Buffer("username").toString("base64")
new Buffer("password").toString("base64")
Here’s the Sending Email code I modified based on @jboswell’s code:
https://gist.github.com/dmiddlecamp/8943011
I got this to send me an email, I think we can do a lot of work to improve on this though!
P.S: Be careful when sending emails! Your SMTP server will throttle or ban you if you send too many too fast, or wrongly! Also check your spam folder!
Thanks,
David