Email Recipients
MSPintegrations parses incoming emails and populates several properties that represent the recipients of the email.
What is the difference between email.to.[0].address
and email.mailbox
?
The variable email.to.[0].address
contains the address the email sender typed in their email client to send you a message. The variable email.mailbox
contains the destination email mailbox that the email was ultimately delivered to.
For example, if a user sends an email to [email protected]
and if that address is configured to forward mail to [email protected]
, then email.to.[0].address
would contain [email protected]
, and email.mailbox
would contain [email protected]
.
In other words, email.to.[0].address
contains the public-facing email address (the address your sender knows about), and email.mailbox
contains the destination mailbox on our system.