Skip to content
Last updated

Overview

When using SMTP relay, you can use the following custom headers to specify how Mailjet will handle your message.

Customer HeaderDescription
X-Mailjet-CampaignThis 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-DeduplicateCampaignIn 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-CustomIDThis custom value will help you track your message more easily.
X-MJ-EventPayloadIf you need more than an ID, no problem: insert a payload to your messages, using any format (XML, JSON, CSV…)
X-Mailjet-TrackOpenThis 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-TrackClickThis 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-PrioThe header manages the different types of email by defining up to four priority levels. More Information
X-MJ-TemplateLanguageThis 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-TemplateIDThis header allows you to pass the ID of the template stored on the Mailjet system.
X-MJ-VarsThis 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-TemplateErrorReportingThis 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-TemplateErrorDeliverThis 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.