WordPress.org

Forums

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

  1. Emil Stahl
    Member
    Posted 2 years 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 2 years 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. Emil Stahl
    Member
    Posted 2 years 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');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • wpMandrill
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic