SMTP Command Example

The following is an example of an SMTP envelope and its contained piece of mail. The SMTP commands that comprise the envelope are in upper case boldface text. The information after the DATA command, and before the single ASCII period (the end of data indicator) is the message header and body. The body is distinguished from the header by the blank line that follows the Subject: Update line of text.
  HELO yourhost.yourdomain.edu
  MAIL FROM: <carol@yourhost.yourdomain.edu>
  RCPT TO: <msgs@host1.somewhere.com>
  RCPT TO: <alice@host2.somewhere.com>
  DATA
  Date: Sun, 30 Nov 98 nn:nn:nn EST
  From: Carol <carol@yourhost.yourdomain.edu>
  To:   <msgs@host1.somewhere.com>
  Cc:   <alice@host2.somewhere.com>
  Subject: Update

  Mike: Cindy stubbed her toe.  Bobby went to
        baseball camp.  Marsha made the cheerleading team.
        Jan got glasses.  Peter has an identity crisis.
        Greg made dates with 3 girls and couldn't
        remember their names.
  .
  QUIT