How do I change the email headers prefix?

How do I change the email headers prefix?

How do I change the email headers prefix?

AppMail uses the X-Mw- header prefix for all the email headers. For instance, an email header section will look like:

X-Mw-Campaign-Uid: tf833t6s9z842
X-Mw-Subscriber-Uid: ts4196dhvl2ff
X-Mw-Customer-Uid: qt449zobz7696
X-Mw-Customer-Gid: 0
X-Mw-Delivery-Sid: 11
X-Mw-Tracking-Did: 0

These headers are important because they are later used to identify the campaign / subscribers when bounces are processed.
However, you might want to use some other header prefix for various reasons, and you can do so by adding following line:

 'email.custom.header.prefix' => 'X-Whatever-',

the file apps/common/config/main-custom.php in the params section as follows:

[...]
return array(

    // application components
    'components' => array(
        'db' => array(
            'connectionString'  => 'mysql:host=__host__;dbname=__dbname__',
            'username'          => '__user__',
            'password'          => '__pass__',
            'tablePrefix'       => 'mw_',
        ),
    ),
    // we add it here
    'params' => array(
        'email.custom.header.prefix' => 'X-Whatever-',
    ),
);

Instead of X-Whatever you can use the right header prefix that makes sense to you.
Please keep in mind that once you change the prefix, any bounce email having another prefix will not be processed.

    • Related Articles

    • Setup guide for the “Subscribe by email” extension

      After you have installed the Subscribe by email extension, it’s time to set it up properly so that subscribers will be able to subscribe or unsubscribe by email directly, instead of going to a subscription/unsubscription form. If you go to the ...
    • Email Box Monitors

      An email box monitor is simply an imap/pop3 account, just like a bounce or feedback loop server, where AppMail will connect from time to time and download the contents and process them in order to take a certain action. You can define conditions so ...
    • Create your first email list

      In order to start sending email campaigns, you should start by creating your first email list. Your email list identifies you as a sender, it contains your information and allows you to take various decisions related to your subscribers. Each list is ...
    • Add subscribers to your email list

      Once your email list is created, next step is to start importing your subscribers into the list. In order to do so, just click on your list title from lists area, then click on the Tools box, followed by the Import box. You will be allowed to import ...
    • How do I change the default DKIM selector and/or DKIM full selector?

      The DKIM selector and DKIM full selector are defined as application params in the configuration, which means you can override them by adding following params in your apps/common/config/main-custom.php file: 'components' => array( ... ), 'params' => ...