It would be awesome to have a way to pass subaccount string to a Mandrill api. Ideally it would be placed next to Mandrill API key in services.php
I agree.
A :+1: from me on this.
It doesn't look like the send-raw Mandrill endpoint takes a subaccount argument, though.
Would be a great addition.
As an interim workaround, try adding getHeaders() and addTextHeader() as the last elements to your $message object:
$message
->subject('foo')
->getHeaders()
->addTextHeader('X-MC-Subaccount', 'bar');
We're open to pull requests.
Most helpful comment
As an interim workaround, try adding
getHeaders()andaddTextHeader()as the last elements to your$messageobject: