When using SMTP relay, you can use the following custom headers to specify how Mailjet will handle your message.
| Customer Header | Description |
|---|---|
X-Mailjet-Campaign | This header value must be unique for all emails belonging to a specific campaign. This will regroup emails into only one line in your dashboard, and provide cool reports ! It can be an alphanumeric value of your choice (space, dash and underscore are also accepted), up to 255 characters long on one line |
X-Mailjet-DeduplicateCampaign | In combination with X-Mailjet-Campaign, this boolean (true, yes, y, 1) indicates that you do not wish to send a message inside the campaign twice to the same recipient. In this case, we check that the recipient hasn’t been sent the message, or otherwise block any duplicate (only the first message goes through). Please note that this is based on recipient email address, it will not block a message sent to the same person on two different email addresses. |
X-MJ-CustomID | This custom value will help you track your message more easily. |
X-MJ-EventPayload | If you need more than an ID, no problem: insert a payload to your messages, using any format (XML, JSON, CSV…) |
X-Mailjet-TrackOpen | This header indicates whether or not you want to activate the open tracking on the concerned message. This option will override your tracking options set on your user account. 0: disable the tracking. 1: enable the tracking |
X-Mailjet-TrackClick | This header indicates whether or not you want to activate or not the click tracking on the concerned message. This option will override your tracking options set on your user account. 0: disable the tracking 1: enable the tracking |
X-Mailjet-Prio | The header manages the different types of email by defining up to four priority levels. More Information |
X-MJ-TemplateLanguage | This header is related to the processing of the template language. It activates the template language processing. By default the template language processing is deactivated. Use 1 to activate. |
X-MJ-TemplateID | This header allows you to pass the ID of the template stored on the Mailjet system. |
X-MJ-Vars | This header allows you to pass a JSON encoded array of variables that can be used with the templating language. Example: {"varname1": "value1","varname2": "value2", "varname3": "value3"} |
X-MJ-TemplateErrorReporting | This header is related to the processing of the template language. It defines the email address, to which a carbon copy with the error message is sent. |
X-MJ-TemplateErrorDeliver | This header is related to the processing of the template language. It defines if the message is delivered when an error is discovered in the templating language. By default the delivery is deactivated. Use deliver to let the message be delivered to the recipient, 0 to stop it. |