SMTP #

Email Parts #

  1. Envelope (MAIL from, RCPT To, etc.)
  2. Headers
    • Possible headers
      • Reply-To
      • X-Phone
      • X-Mailer
      • To
      • Subject
      • Message-Id
      • From
      • Date
      • Received
      • etc.
    • Headers starting with X are used-defined
    • The user-agent adds some headers, then the MTA adds some headers
  3. Body

Relay Agents #

General Timeline/Outline #

  1. Client queues message through client user-agent
  2. Message is passed to client MTA
  3. Client MTA opens up TCP connection to the destination mail server (where the mail is going/mailboxes are hosted) and sends the mail
  4. This goes into the user mailbox
  5. The user then uses a user-agent to view the mail

Multipurpose Internet Mail Extensions (MIME) #