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.
Part 1 of 2: Connecting to a Mail Server Using Telnet
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.
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.
Step 3. Create a Telnet connection
telnet mail.server.com 25where 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
Step 1. Greet the server
The method described here works on any operating system. Enter
HELO yourdomain.comwhere 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
EHLO… Some servers recognize this command.
Step 2. Enter the sender's email address
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.
Step 3. Enter the recipient's email address
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.
Step 4. Enter your message text
Several commands are required to format and send the message.
dataand press ↵ Enter.
- On the next line, enter
subject: testand 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.
Step 5. Enter
quitto close Telnet.
Press ↵ Enter.
- 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.