Test Mail Server : Send Email Using Command Prompt

  • Open Windows Command Prompt using Start -> Command Prompt or via Run -> CMD
  • Telnet to the mail server by typing telnet 25
  • Once connected, we must initiate the mail sending process queue. We start this with helo
  • The server will reply with 250 and a hello if successful.
  • Now we must set the sending mail address. Type mail from:
  • Now we set the to address. Type RCPT TO:


  • Type data to begin the email content.
  • First we set the subject by typing Subject: Then press Enter twice.
  • Now type the message content of your email. When done, press Enter – Period Key – Enter to close the message.
  • Type Quit to exit telnet.
  • Verify your email has been received.

Leave a Reply

Your email address will not be published.