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
Send Email Using Sendmail
Note : We use the domain domain.co.in as an example. Be sure to replace with your own domain. (Use option -v or -vvv for verbose mode to check each events)Subject: test email
hi this is test email
(Now press Control+D to send the message)
root@photon-machine [ ~ ]#
Send email by using To and From.
root@photon-machine [ ~ ]# sendmail receiver@domain.co.in
To: receiver@domain.co.in
From: from@domain.co.in
Subject: Test email from sendmail CLI console
Hi this is test email from sendmailCLI console please ignore
(Now press Control+D to send the message)
root@photon-machine [ ~ ]#
No comments:
Post a Comment