Is there a free command-line-based, lightweight SMTP server for Windows?
All I'm looking for is the ability to send HTML emails from the command-line, using a standalone EXE, with the program being its own server (rather than using some other server like Gmail).
By "lightweight" I mean there should be a single executable, or -- if not possible -- it should come with at most a handful of supporting DLLs, and run standalone (i.e. without installing anything).
I am not looking for
hMailServer. It may be awesome, but it's still bloated for sending a single email. I just need a command-line tool I can have handy on a flash drive or a recovery environment -- something that does not require installation.
The server needs to support TLS -- i.e., it should be able to send mail to major providers like Gmail, which require encryption.
IIS fails every test: it's (1) not lightweight and (2) not standalone.
For those who claim Gmail doesn't need encryption:
$ telnet smtp.gmail.com 25 Trying 18.104.22.168... Connected to gmail-smtp-msa.l.google.com. Escape character is '^]'. 220 mx.google.com ESMTP a9sm264065ibi.26 HELO 250 mx.google.com at your service MAIL FROM: firstname.lastname@example.org 530 5.7.0 Must issue a STARTTLS command first. a9sm264065ibi.26
What am I doing wrong?