How to send SMTP mail from command prompt for testing.

Issue

When troubleshooting SMTP email issues it is oftentimes handy to send a test email directly from Windows in order to narrow down the part of the system with the problem.

Product Line

Andover Continuum, SmartStruxure Solution

Environment

Windows

Continuum

SmartStruxure

Cause

Troubleshooting technique.

Resolution

Simple way to test SMTP email for testing purposes.

  1. Make sure telnet is turned ON in windows. (if not, go to control panel>>programs>>turn windows features on or off and turn ON the telnet client.
  2. Open a command prompt and type telnet domain name (or IP address) and port. EXAMPLE telnet 10.169.9.1 25)
  3. Type HELO and identify the sending system, EXAMPLE: helo MyPCName
  4. Type mail from: followed by an email address. EXAMPLE: mail from: abe@tac.com
  5. Type rcpt to: followed by destination address. EXAMPLE: rcpt to: AMeran@3indq.com (NOTE: must be an email account in the mail server)
  6. Type data then ENTER key
  7. Type a message
  8. Type . (period) then ENTER to end

NOTE: Type slowly and if you mistype something hit enter and after the error re-type the line. Using backup space appears to work but it doesn't.