3 ms·
You know, sending email from the command line isn't quite trivial, if you want to send in anything other than ascii. Telnet[0] to port 25 can be a lot of fun (a
by e12e 14y ago
You know, sending email from the command line isn't quite trivial, if you want to send in anything other than ascii. Telnet[0] to port 25 can be a lot of fun (alternatively openssl s_client[1] -starttls smtp ...).
For anyone not already familiar with this I'd recommend having a look at heirloom mailx[2].
Note, you can of course also pipe stuff to "/usr/bin/sendmail -t", which I'm sure was the thing claudio was alluding to.
[0] See eg:
http://www.freebsdwiki.net/index.php/SMTP,_testing_via_Telnet http://www.freebsdwiki.net/index.php/SMTP,_testing_via_Telne... vs:
http://www.pcvr.nl/tcpip/smtp_sim.htm http://www.pcvr.nl/tcpip/smtp_sim.htm
[1] http://www.madboa.com/geek/openssl/#cs-smtp http://www.madboa.com/geek/openssl/#cs-smtp
[2] http://heirloom.sourceforge.net/mailx.html http://heirloom.sourceforge.net/mailx.html