MAIL FROM and RCPT TO vs. the To and From headers

Apart from the message body, every email message includes the so-called envelope and message headers. In fact, both the envelope and the headers contain the information about the sender and the recipients of the message, and they do not always have to match.

The difference between the two sets is as follows. The recipient addresses specified in the envelope (using the RCPT TO command) are the actual addresses that the sender wants the email to be delivered to. Upon delivery of the message, each recipient won't be able to figure out what other addresses it was meant to be delivered to. The addresses specified in the To message header however, are all included with the email message, and everyone receiving the message sees that same header in full.

Related projects

What are cid URLs and how are they interpreted by email clients?
email
Test your email server deployment.
SMTP, email
Parse, inspect, and debug emails online.
email
How do multipart emails work?
email
How to receive email in Node.js?
email, Node.js, JavaScript

Made by Anton Vasetenkov.

If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.