antvaset.com
/
My blog
MAIL FROM and RCPT TO vs. the To and From headers

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

The difference between the email envelope and message headers when it comes to senders and recipients.

Published on by Anton Vasetenkov
Topics: Email

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.

See also

Receiving email with Node.js
How to receive email in Node.js?
cid URLs for email developers
What are cid URLs and how are they interpreted by email clients?

Thanks for stopping by my digital playground! If you want to say hi, you can reach out to me on LinkedIn or via email. I'm always keen to chat and connect.

If you really-really like my work, you can support me by buying me a coffee.