Friday, January 27, 2012

Command Line SMTP

 How to use Telnet to test SMTP (Simple Mail Transfer Protocol)
  1. Open a command prompt, type telnet, and then press ENTER. 
  2. Type set localecho and then press ENTER. This lets you view the characters as you type them. 
  3. Optional, type set logfile <filename>. This enables logging of the session to the log file specified in <filename>. 
  4. Type open smtp.microsoft.com 25 (inserting the name of the smtp server you want to connect to) and then press ENTER.
  5. Type EHLO mydomain.com (inserting the name of the domain you are coming from) and then press ENTER.
  6. Type MAIL FROM:me@mydomain.com and then press ENTER.
  7. Type RCPT TO:bill@microsoft.com
  8. Type DATA and then press ENTER.
  9. Type Subject: Test from me and then press ENTER.
  10. Press ENTER. 
  11. Type your message Sending a test message to bill. and then press ENTER.
  12. Press ENTER, type a period ( . ) and then press ENTER. 
  13. To end the session, type QUIT and then press ENTER.
  14. To close the Telnet session, type quit and then press ENTER.

No comments:

Post a Comment