| Type: |
Code 
|
| Level: |
Beginner
|
| Date: |
2007-Apr-07
|
| Visited: |
2263 times
|
| Rating: |

|
| Author: |
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