Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category

Simple Mail Transfer Protocol commands

Type: Code Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2007-Apr-07
Networking, Programming and Graphics - Tutorials
Visited: 4116 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Stephen Think

This tutorial will teach you how to connect to a SMTP server , create a e-mail message and send it.

Open a command line window.
If you use Windows operating system you will need to do this:
1. Go to Start
2. Click on Run.
3. Type cmd and then click OK.

Once the terminal windows is opened type:
telnet smtp.mydomain.com 25
Once connected to the server, we have to start sending commands for it to do some tasks. Let us see an example of some commands. I will not explain each one of them as they seem pretty intuitive:

Note : The lines where is says "Blank line ..." is just a blank line . Do NOT copy/paste them.
HELO mydomain.com
MAIL FROM: myname@mydomain.com
RCPT TO: john.doe@test.com
DATA
From: "My Name and My Last name" 
Subject: Telnet mail test
To: "PETE, DOE" 
"Blank line for the beginning of the mail body"
Text test in the body of the mail
"Blank line indicating end of mail body"
.
"Blank line indicating end of message"
QUIT
Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: