What is the basic SMTP protocol for sending mail?

John Zukowski

RFC 2821 (http://www.faqs.org/rfcs/rfc2821.html) defines the SMTP protocol. To send a message you would normally open up port 25 on your mail server and send the following information:

HELO sending host
MAIL FROM: sender email
RCPT TO: recipient email
... the email message...
... any number of lines ...

Between the DATA line and the . (period) line is the message. The period is alone on the line following the end of the message.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.