Posting mainly in case others have encountered this, I'm not sure a fix in the code makes the most sense. Currently because of line 145 in modules/system.eval.inc, "Send mail to all users of a role" stops sending mail if it receives a FALSE return value from drupal_mail(). Mandrill returns false when sending mail to any user who has unsubscribed or is otherwise blocked, so this causes the rule to stop evaluating, even though Mandrill is working properly.
Workaround:
Enable "queued sending" from Mandrill. Then drupal_mail() returns TRUE to Rules without actually passing the message to Mandrill's server, and thus all the emails will get enqueued.
To reproduce:
Create a rule or component with "Send mail to all users of a role"
Enable and configure Mandrill and set the default mail class to Mandrill. Make sure Mandrill is not set to queued send.
Create a user of a given role and have them *unsubsribe* from receiving site email.
Then create another new user of the same role.
The rule execution will stop sending after it receives a "failure" response from Mandrill for the unsubscribed user.
Comments
Comment #2
tr commented