Send mail through SMTP using Telnet
Developers in my office constantly complain that the SMTP server is down and no mails are being sent out. We come back saying that their application is buggy. Most often after hours of troubleshooting the problem will turn out to be the application itself. Here’s a simple way to test your SMTP server over port 25 using Telnet to proof them wrong. Telnet to the server via port 25. Key in “EHLO example.com” and hit enter. Key in “MAIL FROM: [email protected]” and hit enter. Key in “RCPT TO: [email protected]” and hit enter. Key in “DATA” and hit enter. Key in your message body and hit enter. Key in " . " and press enter. If you received the mail then your SMTP is working fine. Sample output, ...