Thursday, May 3, 2012

telnet: sending a mail with smtp

How to test SMTP using telnet, just like this:

$telnet <smtpserver> 25
ehlo
mail from: <source mail>
rcpt to: <target mail>
data
<all content you want>
.
quit