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
 
 
Allen White
Allen is a Consultant for ITPS 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.

ITPS provides strategic IT consultancy, implementation, data centre provision and unified communications, as well as support services and workspace and disaster recovery. If you require a consultation then please contact me via the contacts section or direct on 07931222991, add me on linkedin. https://uk.linkedin.com/in/allenwhiteconsultant0001

Tags:

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.