We used the following function with the original Mandrill plugin. This appears to still work with this forked version.
function add_mandrill_sub_account( $message ) {
$message['subaccount'] = 'SUB ACCOUNT NAME';
return $message;
}
add_filter( 'mandrill_payload', 'add_mandrill_sub_account' );
Hi @seagyn, the public GitHub repository is here:
https://github.com/miller-media/send-emails-with-mandrill
Feel free to do a pull request and we’d be happy to review and merge if it works out. In the meantime it does look like Cultivate’s fix works as well.
Thanks!
A pull request has been opened for this issue:
https://github.com/Miller-Media/send-emails-with-mandrill/pull/41
Should be available in the next version of the plugin. Will let you know as soon as we have that updated. Thanks!