How to send mails using Telnet command
Sometimes you need to check if open relay is allowed in the server or else to see if there is any issue with the mail server. You can check this to send mails using Telnet command.
You need to follow the steps mentioned below to send mail through Telnet command.
1 Open the cmd prompt. (Start -> Run or press win key + R, then type cmd and press OK )
2 Type telnet server.com 25 (where "server.com" is the name of the smtp (outgoing) server of your email provider, such as smtp-server.austin.rr.com). This can be found by checking your account info in the program you normally use for email.
3 Type HELO server.com. (Or "HELO server.com")
4 Type MAIL FROM:you@server.com.
5 You may get a message saying "250 ok"
6 Type RCPT TO:Friend1@anotherserver.com, friend_two@someotherserver.org, friend.3three@Someserver.com, etc.
7 again, You may get a message saying "250 ok"
8 To write the message, type DATA and press Enter.
On the first line type SUBJECT:your_subject and press Enter twice. Continue typing your message. Put a single period (.) on a line by itself and press Enter to send your message. The server should say 'Message accepted for delivery'. (Or it says 250 OK i d=`a long id`)
9 Type QUIT to exit Telnet.
If you are getting 'Message accepted for delivery' or 250 OK i d=`a long id`, It means the server is allowing open relay and there is no issue with the mail server.
Thank you.
You need to follow the steps mentioned below to send mail through Telnet command.
1 Open the cmd prompt. (Start -> Run or press win key + R, then type cmd and press OK )
2 Type telnet server.com 25 (where "server.com" is the name of the smtp (outgoing) server of your email provider, such as smtp-server.austin.rr.com). This can be found by checking your account info in the program you normally use for email.
3 Type HELO server.com. (Or "HELO server.com")
4 Type MAIL FROM:you@server.com.
5 You may get a message saying "250 ok"
6 Type RCPT TO:Friend1@anotherserver.com, friend_two@someotherserver.org, friend.3three@Someserver.com, etc.
7 again, You may get a message saying "250 ok"
8 To write the message, type DATA and press Enter.
On the first line type SUBJECT:your_subject and press Enter twice. Continue typing your message. Put a single period (.) on a line by itself and press Enter to send your message. The server should say 'Message accepted for delivery'. (Or it says 250 OK i d=`a long id`)
9 Type QUIT to exit Telnet.
If you are getting 'Message accepted for delivery' or 250 OK i d=`a long id`, It means the server is allowing open relay and there is no issue with the mail server.
Thank you.
Comments
Post a Comment