Click here to Skip to main content
15,885,032 members
Articles / DevOps / Testing
Tip/Trick

How to send a test email message using Telnet

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
28 Feb 2011CPOL 18.8K   3   1
How to send a test email message using Telnet
Occasionally I’ve had to troubleshoot sending email messages to a particular SMTP server by simulating a mail client (or .NET mail code) by using the telnet client. Here’s how I do it on Windows:
  1. Open the command prompt
  2. type: telnet smtpserver.domain.com 25 <press enter>
  3. type: helo server.com <press enter>
  4. type: mail from: you@domain.com <press enter>
  5. type: rcpt to: someone@domain.com <press enter>
  6. type: data <press enter>
  7. Write a test message. Typically, I type something like: hello world! <press enter>
  8. To send the message, type a single period (.) on a line by itself and of course, press enter

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Software Developer

Comments and Discussions

 
Generalhow could i provide user name and password. I am trying this... Pin
pankajupadhyay291-Mar-11 18:07
professionalpankajupadhyay291-Mar-11 18:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.