WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
[resolved] Custom signing, return-path, tracking domain and a sub account header (3 posts)

  1. emilstahl
    Member
    Posted 4 months ago #

    I want all mails to use a custom signing, return-path, tracking domain and a subaccount.

    Where can I set the headers for the mails the Mandrill plugin sends?

    https://wordpress.org/plugins/wpmandrill/

  2. Mandrill Kaitlin
    Member
    Posted 4 months ago #

    If you don't want to change any code, you can use Mandrill's Rules Engine to assign a subaccount and a signing domain, for example.

    Otherwise, you'll want to customize how the mail is being sent. An overview of how you can modify this can be found on the Mandrill blog here.

    You'll specifically want to add a filter to change those specific parameters in the $message that's being passed to Mandrill.

  3. emilstahl
    Member
    Posted 4 months ago #

    Thanks!

    function mandrill($message)
    {
    	$message['subaccount'] 	= "BilligeFifaCoins.dk";
    	$message['tracking_domain'] = "email.billigefifacoins.dk";
    	$message['signing_domain'] = "billigefifacoins.dk";
    	$message['return_path_domain'] = "bounce.billigefifacoins.dk";
        return $message;
    }
    add_filter('mandrill_payload', 'mandrill');

Reply

You must log in to post.

About this Plugin

About this Topic