Portal Home > Knowledgebase > SSH > How to use telnet to send email?

How to use telnet to send email?

To send emails using telnet, follow the below steps.

1. In the command prompt, use the code "telnet example.com 25" to connect.
2. Now type the code "ehlo example.com".
3. Type the from and to email addresses using the codes "mail from: username@example.com" and "rcpt to: friend@gmail.com, friend2@gmail.com"
4. Type data along with subject and message to compose the message. To end the message, put a period on a line and then click Enter to send the email. It will look like,

data
Subject: My Telnet Test Email

Hello,

This is an email sent by using the telnet command.

Your friend,
Me

.

Note: when you are done, type quit to exit telnet.


Also Read