How to send and receive emails using telnet for testing
HOW TO SEND EMAIL USING TELNET
TIP: We use the domain example.com as an example. Be sure to replace with your own domain.
- Open your command prompt.
- Now, connect with telnet using the following command:
telnet example.com 25
- Type ehlo example.com. Some servers also accept helo in place of ehlo.
ehlo example.com
- Type mail from: username@example.com:
mail from: username@example.com
- Type rcpt to: friend@hotmail.com, friend2@yahoo.com (replace with your actual recipient name):
rcpt to: friend@hotmail.com, friend2@yahoo.com
- To write the message - type data, followed by your subject and message. To end the message, put a period on a line by itself and press enter:
data
Subject: My Telnet Test Email
Hello,
This is an email sent by using the telnet command.
Your friend,
Me
.
- Type quit to exit telnet.
HOW TO CHECK OR READ EMAIL WITH TELNET
- Open your command prompt.
- At the command prompt, type in
telnet example.com 110
- Type user and the email address (username@example.com) of the user for which you wish to view emails:
user username@example.com
- Then type in pass followed by your password:
pass yourpasswordgoeshere
- Type list to bring up a list of your emails:
list
- You will see a list of items with labels like "1 897" and "2 5136." Here is an example:
list
+OK POP3 clients that break here, they violate STD53.
1 897
2 5136
3 1884
4 2973
5 2595
6 3063
7 3509
8 2283
9 1926
10 2763
11 1795
12 2780
13 2342
14 2342
15 2342
16 3833
17 2211
18 793
19 797
20 2599
.
- If you wish to read an email message such as 2 5136, you can type the following:
retr 2
- If you want to delete a message such as 1 897, type dele 1:
dele 1
- When you are done checking your email, type quit.
-
Related Articles
Best Mailing practices for regularly sending marketing / notification emails out to 3rd party public mail services e.g. Gmail,Yahoo,Hotmail
Here is what you can do to prevent undeliverability. Best Mailing practices for regularly sending marking/notification emails out to 3rd party public mail services, e.g. Gmail, Yahoo, Hotmail From your VM / Dedicated Server (for shared hosting ...
Send mail from our servers when using external mail
If you want to send mail from our mail servers but have mail services else where, then please do the following: 1) Add a subdomain called "mailer" to the domain via the control panel 2) Go to the mail manager for the subdomain and add a mailbox to ...
Send mail from our servers when using external mail
If you want to send mail from our mail servers but have mail services else where, then please do the following: 1) Add a subdomain called "mailer" to the domain via the control panel 2) Go to the mail manager for the subdomain and add a mailbox to ...
Backup exchange emails from OWA
Outlook 2003/2007 will only download your inbox and junk mail folders, so if you have sent items, you have to drag and drop them into your inbox (clicking on the top email, shift, clicking on the bottom email, and then dragging them for each set of ...
Client is reporting that mail is being sent from their domain that they didnt send
Client is reporting that email is being sent from their domain that they did not send. essentially, email addresses are being spoofed. We have a mechanism to protect our users from this sort of activity call SPF (Sender Policy Framework). You can ...