For When You Can't Have The Real Thing
[ start | index | login ]
start > smtp session

smtp session

Created by dave. Last edited by dave, 21 years and 10 days ago. Viewed 2,702 times. #1
[edit] [rdf]
Speak SMTP

When one sends mail using the SMTP protocol, one has only the following commands:

Greet the mail server. Used once per session - at the beginning of the session.

MAIL FROM: <from>
Announce who the sender is. Used once per mail, before specifying any recipients for each mail, or after a RSET.

RCPT TO: <rcpt>
Announce who the mail is to. Multiple recipients are allowed, each must have its own RCPT TO: entered immediately after a

Starts mail entry mode. Everything entered on the lines following DATA is treated as the body of the message and is sent to the recipients. The DATA terminates with a . (period) on a line by itself. A mail may be queued or sent immediately when the . is entered. It cannot however be reset at this stage.

Reset the state of the current transaction. The MAIL FROM: and RCPT TO: for the current transaction are cleared.

End the session. No commits happen here.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt