There are different methods of the testing email server. One of them is telnet. With telnet, You can test the Simple Mail Transfer Protocol(SMTP) communication between email server. The SMTP protocol used to send an email message from one messaging server to another.
If Your computer is not installed with a telnet client. Then You can install by opening the “Programs and Features” section of the control panel and selecting “Turn Windows features on or off”. Select “telnet client” and then click OK. After successfully installed You can follow steps below to test email server using telnet.
TO SENDING EMAIL USING TELNET FOLLOW STEPS BELOW:
- Open Command Prompt and connect email server using server and port address:
2. If connection successfully You will get welcome banner:
220 ESMTP Sun, 23 Jun 2019 07:30:03 -0400: UCE strictly prohibited
3. Then send HELO command to the server with the hostname.
250 exch2016.tekbloq.com Hello mail.tekbloq.com [82.194.13.114]
4. Then use “mail from: support@tekbloq.com” provide the sender address:
mail from: support@tekbloq.com
250 2.1.0 Sender OK
5. Then use “rcpt to: info@tekbloq.com” string to provide recipient address:
rcpt to: info@tekbloq.com
250 2.1.5 Recipient OK
6. To send subject and message part You need to use DATA command, Use “Subject” for send subject part and hit the enter to send message part. When you Finish all message press enter and type “.” symbol to send an email:
data
354 enter message, ending with “.” on a line by itself
Subject: This is test email
Hello.
Message section
Best Regards,
Tekbloq.com
.
250 OK id=1had90-0006X7-gf
7. To exit type quit:
quit
221 exch2016.tekbloq.com closing connection
Connection to host lost
That’s all.
PS: If You send this type of message from a remote server and Which is not allowed to send You will get “550 5.7.1 Unable to relay” error. You need also use “auth login” command to authorize before sending an email. You need to type email and password to authorize.
If You have any question about this or another topic Please feel free contact with us. You can also ask to create specific articles which you want to see on our blog.