telnet smtp commands

Here is a mini how to use telnet to send email / or use it to test the smtp server

1. Type telnet [mailserver ip og hostname] [Port]

telnet mail.domain.com 25

2. Type helo [your hostname]

Helo mail.mymailserver.com

3. Type mail from: [a valid email address]

MAIL FROM: mail@domain.com

4. Type RCPT TO: [Receive emailaddress]

RCPT TO: testuser@domain.com

5. Type DATA

DATA

6. Type the message of the email

This is a test email

7. On a new line type .

.