Send Mail Via Telnet

Send Mail Via Telnet

Here I will show you how simple it is to send email via Telnet. For those who are new to telnet client can get to know how to setup client and server connection and fires command. Let’s first open the command prompt. To send email we will use SMTP address and port number 25.

Below are the SMTP commands for sending email.

From Mail: 
RCPT TO:
Data:
SUBJECT:
BODY:
.

Character . is used to terminate the email.

Let’s get SMTP address of recipient to whom we would like to send mail.

GET SMTP Address or MX Record using nslookup

MX Record is known as Mail Exchange Record. It gives you SMTP address associated with domain name.

Example

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>nslookup -query=MX sharklasers.com
Server:  smtp1.ttml.co.in
Address:  202.149.208.92

Non-authoritative answer:
sharklasers.com MX preference = 0, mail exchanger = mail.sharklasers.com

sharklasers.com nameserver = sara.ns.cloudflare.com
sharklasers.com nameserver = rick.ns.cloudflare.com
mail.sharklasers.com    internet address = 198.143.169.10
rick.ns.cloudflare.com  internet address = 173.245.59.139
rick.ns.cloudflare.com  AAAA IPv6 address = 2400:cb00:2049:1::adf5:3b8b
sara.ns.cloudflare.com  internet address = 173.245.58.144
sara.ns.cloudflare.com  AAAA IPv6 address = 2400:cb00:2049:1::adf5:3a90

C:\Documents and Settings\Administrator>

Telnet SMTP Send mail

Using Telnet command you can actually see the status of the SMTP server. You get to know if it’s down or up.

C:\Documents and Settings\Administrator>telnet mail.sharklasers.com 25
Mail from: ymfziqhs@sharklasers.com 250 2.0.0 OK
RCPT TO: ymfziqhs@sharklasers.com250 Accepted
DATA: test
354 Enter message, ending with "." on a line by itself
SUBJECT : Test
Body: TEST BODY
.250 OK : queued as 81417efbf3622d9ba1ce7e0468054865

Send email video

Tags:

How To

Send Mail Via TelnetC# send email using System.Net SMTP ClientHow to read Gmail in Yahoo mailYahoo email settingsTemporary disposable emailC-Send-emailCheck Email AddressSend EmailASP.net read email hotmailCreate contact us formread gmail

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.