There should be functionality to send as a Subaccount.

It seems fairly basic to implement, just one form field (to capture Subaccount name) and one extra line in the send request: https://mandrillapp.com/api/docs/messages.JSON.html#method=send

*I haven't checked to see if this feature is already in dev sorry if it is*

Comments

jordanmagnuson’s picture

+1 for this. I'd say subaccounts are a significant part of the Mandrill offering. Seems like they would provide an excellent way to analyze and manage reputation across different categories of transactional emails.

This module should provide the ability to send any given email from any one of several defined subaccounts (with one functioning as the default).

(For those unfamiliar with Mandrill subacounts, more information here).

levelos’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

Moving to 2.x branch where the required API calls are provided.

screenage’s picture

In the meantime you could use a simple alter hook in a seperate module :

/**
 * Implemention of hook_mandrill_mail_alter().
 */
function mymodule_mandrill_mail_alter(&$mandrill_params, $message) {
  $mandrill_params['message']['subaccount'] = '..';
}
jasonrichardsmith@gmail.com’s picture

Issue summary: View changes

This is an old feature request, but I have a created a module to address this issue until Mandrill gets this functionality added
Mandrill Subaccount

jordanmagnuson’s picture

Thanks Jason--will take a look. Would you consider submitting a patch against the Mandrill module to add the same functionality?

jasonrichardsmith@gmail.com’s picture

JordanMagnuson - This module only applies a subaccount to the entire site. So it will not meet your use case requirements.

I would happy to contribute to this project, but I feel this would not be a patch but an additional feature, which would require I take on co-maintainer responsibilities.

gcb’s picture

Status: Active » Closed (fixed)

Fixed in dev.