Send an Email from Command Line / Telnet

Written by Allen White on. Posted in Exchange 2003, Exchange 2007, Exchange 2010, General, SBS2008/2011, Server 2003, Server 2008

Sometimes it can be usefull to test that email is working quickly, if you have a problem with microsoft exchange this can be a good way of testing port 25 communications.Most servers do not have an email client on them so we need to do it from command line.

Here is a step by step guide to sending an email in telnet

    1. First open the command prompt
      ( Start > run > cmd)
    2. Then type:telnet mymailserver 25mymailserver” is the name of the mail server. This can either be the name of the server (netbios) or its fully qualified DNS name.  The number 25 is the port number that telnet is to connect on, smtp users port 25.
    3. Then enter:HELO .

 

    1. Then type:MAIL FROM: anemailaddress anemailaddress” is your email address. This is the address that the email will be sent from. You will see a  response starting with “250″ and ending with “OK”.
    2. Then type:RCPT TO: recipientmailrecipientmail” is the email address that you will send an email to. You should get a response starting with “250″ and ending with “OK”.
    3. Then type DATA then press return and then enter yur contentThis is the content of the email

 

    1. To show the end of your message enter a full stop (“.”) on its own on a line followed by pressing Enter.

 

  1. To close the telnet session enter:QUIT
 
 
Related Posts Slider

Related Problems

IT Tutorials
Step by step guide on transfering you FSMO roles in GUI and command line.How to transfer FSMO roles from one server to another guide.
READ SOLUTION
Create or Remove A Static Route In A Windows OS
If you need to route traffic in windows this can be done with a command line toll. Here is how to create a static route in windows.
READ SOLUTION
Exchange 2010/2007 Send on Behalf , Send as.
If you want to send emails on behalf of other people then we need to setup the send as and send on behalf permissions in microsft exchange 2010 or exchange ...
READ SOLUTION
Forward Exchange 2007 or 2010 email to external account
A guide on how to setup exchange 2010 or 2007 to forward email to an external recipient. How to forward email in exchange,
READ SOLUTION
Guide To Creating an E-Mail Protection Policy In Forefront TMG 2010
A step by step guide on how to create an E-Mail protection Policy in Forefront TMG 2010 to protect your exchange install.
READ SOLUTION
You can power off your virtual machines from command line. Here is a step by step guide on how to do this.
READ SOLUTION
Create Send connector in Exchange 2010
A send connector is used by exchange to send email to the internet or a specific address. Here is a guide on how to setup a send connector in ...
READ SOLUTION
Check the amount of exchange email sent internally
A guide on how to how to check the amount of exchange email sent internally. How to check yout exchange mail internal statistics.
READ SOLUTION
How To Transfer FSMO Roles, Graphical And Command
Create or Remove A Static Route In A
Exchange 2010/2007 Send on Behalf , Send as.
Forward Exchange 2007 or 2010 email to external
Guide To Creating an E-Mail Protection Policy In
Power off / Restart a VM – Command
Create Send connector in Exchange 2010
Check the amount of exchange email sent internally

Tags:

Allen White

Allen is a Technical Consultant for an IT company in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure. Backup Academy Certified. I run this site in my spare time so if I help you then PLEASE take the time to share using the share tools on the site.

What Do You Think?

Search Solutions

Categories

(c) Techieshelp.com. Please be aware, all information is provided freely, any information used is done so at your risk and Techieshelp will not be held responsible for any issue that may occur.

Please Support Techieshelp by Sharing

Techieshelp offers easy to follow free guides and solutions.If you found this useful then please share!