How to send an email via Telnet: 8 steps

Table of contents:

How to send an email via Telnet: 8 steps
How to send an email via Telnet: 8 steps
Anonim

Email clients like Thunderbird and Outlook make the process of sending emails a lot easier. In any case, until your letter is lost on the network. Want to know what happens when you click Submit? Then use Telnet, a small utility that integrates into the system and sends test requests from your mail service server. In this case, you will find out about an error that your email client did not report.

Steps

Part 1 of 2: Connecting to a Mail Server Using Telnet

Send Email Using Telnet Step 1
Send Email Using Telnet Step 1

Step 1. Activate Telnet

If you are using Mac OS or Windows XP, Telnet is ready to go. If you are using Windows Vista, 2008 Server, 7, 8.1 or 10, you need to activate Telnet.

  • In Windows Vista, 2008 Server, 7 and 8.1, click Start - Control Panel - Programs - Turn Windows features on or off. A list of Windows components will open. Scroll down the list and check the box next to "Telnet Client". Click OK.
  • In Windows 10, right-click on Start and select Programs and Features. On the left menu, click Turn Windows features on or off. In the list that opens, check the box next to "Telnet Client". Click OK.
Send Email Using Telnet Step 1
Send Email Using Telnet Step 1

Step 2. Open a terminal window

This is done differently on Windows and Mac OS.

  • In any version of Windows, press ⊞ Win + R, type

    cmd

    , and then press ↵ Enter.
  • On Mac OS, in Finder, click Applications - Utilities. Double click on the "Terminal" icon. You can also open a terminal by entering terminal and clicking on it in Launchpad.
Send Email Using Telnet Step 2
Send Email Using Telnet Step 2

Step 3. Create a Telnet connection

Enter

telnet mail.server.com 25

where mail.server.com is the name of the Simple Mail Transfer Protocol (SMTP) of your mail service (for example, smtp-server.austin.rr.com) and 25 is the port number used by the service SMTP.

  • The screen displays something similar to "220 mail.server.com".
  • Most mail servers use port 25, but in some cases port 465 (secure port) or 587 (for Microsoft Outlook) is used. To find out the port number, contact your system administrator or check your account information.
  • If you receive an error message, such as that it was not possible to connect on port 25, and you are sure that 25 is the correct port number, then the mail server is malfunctioning.

Part 2 of 2: Sending a message

Send Email Using Telnet Step 3
Send Email Using Telnet Step 3

Step 1. Greet the server

The method described here works on any operating system. Enter

HELO yourdomain.com

where yourdomain.com is the name of the domain from which you are sending emails. Note that there is only one l in the helo command. Press ↵ Enter.

  • The screen displays "250 mail.server.com Hello yourdomain.com pleased to meet you." (250 mail.server.com Hello, yourdomain.com welcomes you).
  • If you receive an error message or receive no message, instead of the command

    HELO

    enter

    EHLO

    … Some servers recognize this command.
Send Email Using Telnet Step 4
Send Email Using Telnet Step 4

Step 2. Enter the sender's email address

Enter

mail from: [email protected]

where replace [email protected] with your email address. Make sure after

mail from:

you entered a space. Press ↵ Enter.

  • The screen displays "250 Sender OK".
  • If you receive an error, please make sure that the domain name of your email address is the same as the domain name of the server. Your mail service server will not allow you to send a message if you enter your email address on another mail service, such as yahoo.com.
Send Email Using Telnet Step 5
Send Email Using Telnet Step 5

Step 3. Enter the recipient's email address

Enter

rcpt to: [email protected]

where instead of [email protected] substitute the recipient's email address. Press ↵ Enter.

  • The message "250 OK - MAIL FROM [email protected]" will be displayed on the screen.
  • If you receive an error message, the recipient's email address may be blocked.
Send Email Using Telnet Step 6
Send Email Using Telnet Step 6

Step 4. Enter your message text

Several commands are required to format and send the message.

  • Enter

    data

    and press ↵ Enter.
  • On the next line, enter

    subject: test

    and press ↵ Enter twice. Replace "test" with the subject of the message.
  • Enter your message text. Then press ↵ Enter.
  • Press. Once to end the message, then press ↵ Enter. The system will notify you that your message has been added to the sending queue.
  • If you receive an error message, write it down and contact your postal service representative.
Send Email Using Telnet Step 7
Send Email Using Telnet Step 7

Step 5. Enter

quit

to close Telnet.

Press ↵ Enter.

Advice

  • The Telnet commands described work on any system, including Linux.
  • Some email clients put emails sent in this way into a spam folder. If you are using this method to test your account, check the spam folder in the recipient's mailbox.
  • Some email services (like Hotmail) do not allow users to send emails via Telnet.
  • You can also check your mail using Telnet.

Popular by topic