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