How to send a test e-mail via Telnet

Modified on: Fri, 22 Mar, 2019 at 12:30 PM


To send a test email via Telnet, please do the following:

  1. Open Command Prompt

  2. Type:telnet IP_address_of_mail_server 25

The server should respond with 220 (then identifies itself – possibly with several lines of 220 + text)

Type:

HELO

The server should respond with 250 (followed by human readable message)

Type in who you want the test e-mail to come from:

mail from: you@yourdomain.com

The server should respond with 250 is syntactically correct (or similar)

Type in who you want the test e-mail to go to:

rcpt to: them@theirdomain.com

The server should respond with 250 is syntactically correct (or similar)

Type:

data
  1. The server should tell you to send data then CRLF period CRLF at end

  2. Type your test message and then CRLF period CRLF (i.e. type a period on a line by itself then hit ENTER).
    The server should respond with a 250 message submitted to queue

The e-mail will then be submitted to the mail servers queue for delivery and the recipient specified in step 5 should receive it.