How to send E-mail using telnet connection to SMTP server
search cancel

How to send E-mail using telnet connection to SMTP server

book

Article ID: 160298

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

This article provides the steps to send E-mail using telnet connection to SMTP server. This might help in case of E-mail notification issues.

Resolution

How to send email using telnet

Open your command prompt.

Now, connect with telnet using the following command:

telnet example.com 25

Type ehlo example.com (Some servers also accept helo in place of ehlo):

ehlo example.com

Type mail from: [email protected]:

mail from: [email protected]

Type rcpt to: [email protected] (replace with your actual recipient name):

rcpt to: [email protected]

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 using the telnet command.

 

Your friend,

Me

 

.

 

Type quit to exit telnet.

NOTE: Make sure to add a space between the Subject and the body to avoid corruption of the header and/or malformed email messages.