How to Send Email Using TELNET

We use the domain example.com as an example.
Be sure to replace with your own domain.


Open your command prompt.
Now, connect with telnet using the following command:
telnet example.com 25
Type ehlo example.com. Some servers also accept helo in place of ehlo.
ehlo example.com
Type mail from: username@example.com:
mail from: username@example.com
Type rcpt to: friend@hotmail.com, friend@yahoo.com, friend@gmail.com (replace with your actual recipient name):
rcpt to: friend@hotmail.com, friend@yahoo.com, friend@gmail.com
To write the message - type data, followed by your subject and message. To end the message, put a period on a line by itself and press enter:
data
Subject: My Telnet Test Email

Hello,

This is an email sent by using the telnet command.

Your friend,
Me

.
Type quit to exit telnet.

0 comments:

Post a Comment