Questions? Feedback? powered by Olark live chat software

Posturi etichetate cu ‘email headers’

How to tag your emails X-NZ-Tags

For transactional emails, reporting is usually calculated per day, since there is no such thing as a campaign. Transactional emails are usually one to one. We have come up with Tag concept for emails in order to group some emails (by tags). By using the email tags, it’s now easy to check reports for a specific group of emails. For example: order_confirmation or signup.

NewsmanSMTP supports multiple tags per email.

Adding the tags is straight forward: Use X-NZ-Tags email header. Tags are separated by comma.

Ex:

X-NZ-Tags: order_confirmation,customer_101

The email tagging feature is also supported in the REST API.
Tags can pe added in the message.send method.

Email Metadata for later tracking

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.");