Sending email using telnet command

  1. Open your command prompt.
  2. Now, connect with telnet using the following command:
    telnet example.com 25
  3. Type ehlo example.com. Some servers also accept helo in place of ehlo.
    ehlo example.com
  4. Type mail from: username@example.com:
    mail from: username@example.com
  5. Type rcpt to: friend@hotmail.com, friend2@yahoo.com (replace with your actual recipient name):
    rcpt to: user1@gmail.com, user2@gmail.com
  6. 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 a test email using the telnet command.
    
    Your admin,
    Admin
    
    .
    
  7. Type quit to exit telnet.
  •  
  •  
  •  
  •  

Viet Luu has written 318 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply