SMTP Client allows you to connect to an SMTP server in JS.
github.com/emailjs/emailjs-smtp-client
emailjs/emailjs-smtp-client