We’ve released a quick update today which allows you to “identify” easily every email sent.
For this we have a new email header: X-NZ-Metadata
.
All data sent in this email header will be saved to the database and later on can be retrieved by API call: send.info
.
Also the value of the X-NZ-Metadata
header will be sent with all webhook calls in the meta array.
Here is a quick example of adding custom email header X-NZ-Metadata
with Swift mailer:
$message->getHeaders() ->addTextHeader("X-NZ-Metadata", "My custom string: ID or JSON, etc.");