Showing posts with label Telnet. Show all posts
Showing posts with label Telnet. Show all posts

Tuesday, October 17, 2017

Send email using TELNET and Sendmail protocols

Send Email Using Telnet 

Note : We use the domain mailserver.co.in as an example. Be sure to replace with your own domain.
  • Open your command prompt.
  • Now, connect with telnet using the following command:
telnet mailserver.co.in 25

  • Type ehlo example.com. Some servers also accept helo in place of ehlo.

ehlo 
mailserver.co.in


  • Type mail from: sender@mailserver.co.in:


mail from: sender@mailserver.co.in


  • Type rcpt to: receiver@anydomain.com (replace with your actual recipient name):


rcpt to: 
receiver@anydomain.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 Minder server using the telnet command.
Your friend,
Me
.


Type quit to 
exit telnet.


Now you should receive Test email sender@mailserver.co.in to receiver@anydomain.com