Table of Contents:
This feature enables marketers to dynamically add / insert / inject a custom header into the header of every email message sent via this connection! Custom headers are also known as custom x-headers. This feature is not to be used for implementing List-Unsubscribe Headers. See our List-Unsubscribe Header for more info about that. |
Here's a snippet of an email message header with the above custom header added to the outbound email message:
X-HEADER-NAME: marketing From: some_name <newsletter@somecompany.com> Subject: Newsletter Reply-To: newsletter@somedomain.com Return-Path: bounces-3249@somesmtp.com Content-Type: multipart/alternative; boundary="_----3WwrS01AbB9izOtvaHw===_2F/B6-162-06C7F5" |
You can have an MD5 email in the custom X-header when sending through a particular connection by following steps shared below.
Outlook:
Gmail:
Mail-Tester:
This feature is mostly deprecated and superseded by the above setting in the vendor connection setup page. The only time you might still need this is if you'd like to set this value on a per campaign basis, in which case you'll need to add the following replacement tag in the body of your email message. Using this feature will add an additional header. It does not overwrite the one set in the connection as detailed above. |
Place the following replacement tag in the body of your HTML email message:
[[esp-id:header_X-SOME-HEADER-NAME:<value>]] |
Ongage will remove this tag from the body of the email message prior to sending, and inject X-SOME-HEADER-NAME: <value> into the header of the email message.
For example:
Placing the following in the body of the email message: [[4:header_X-SOME-HEADER-NAME:marketing]] Will inject the following X-Header for all emails sent via Amazon SES connections: X-SOME-HEADER-NAME:marketing |
The "if-then-else" conditions can also be used as part of the Email X-Header replacement Tag.
Below example of where "email_key" is your list field and "ocx_campaign_name" is the system field. Here system will look at "email_key" first and if it is empty then will pick up the Campaign name.
[[0:header_X-SOME-HEADER-NAME:{{ocx_if email_key !is empty}}{{email_key}}{{ocx_else}}{{ocx_campaign_name}}{{ocx_endif}}]] |
Note: Instead of esp-id you can use the ID – the ESP Connection ID number that appears in your "My Connections" screen as illustrated below:
Moreover, you can also use 0 e.g., ESP ID 0: [[0:header_X-SOME-HEADER-NAME:header-value]] and then it will inject that X-header in all SMTP vendors that we support this feature.