Send an Email from Command Line / Telnet
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
- First open the command prompt
( Start > run > cmd) - Then type:
telnet mymailserver 25“mymailserver” 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. - Then enter:
HELO.
- 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”. - Then type:
RCPT TO: recipientmail“recipientmail” is the email address that you will send an email to. You should get a response starting with “250″ and ending with “OK”. - Then type
DATA then press return and then enter yur contentThis is the content of the email
- To show the end of your message enter a full stop (“.”) on its own on a line followed by pressing Enter.
- To close the telnet session enter:
QUIT
Related Problems
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
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
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
You can power off your virtual machines from command line. Here is a step by step guide on how to do this.
READ SOLUTION
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
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
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
A guide on how to how to check the amount of exchange email sent internally. How to check yout exchange mail internal statistics.
READ SOLUTIONHow To Transfer FSMO Roles, Graphical And Command
Exchange 2010/2007 Send on Behalf , Send as.
Create or Remove A Static Route In A
Power off / Restart a VM – Command
Forward Exchange 2007 or 2010 email to external
Create Send connector in Exchange 2010
Guide To Creating an E-Mail Protection Policy In
Check the amount of exchange email sent internally
Tags: email
Trackback from your site.

