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]

2. Type helo [your hostname]

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

4. Type RCPT TO: [Receive emailaddress]

5. Type DATA

6. Type the message of the email

7. On a new line type .