Calling drupal_mail() doesn't return Mandrill API response in any form. It just returns $ret['result'] = TRUE.
It is desirable to receive Mandrill response instead of just TRUE, to get message _id
Example call:

$ret = drupal_mail('my_module', 'my_key', $to, $lang, $params, $from);

Example of Mandril API response:

  $ret['result'] = Array
    (
        [0] => Array
            (
                [email] => recipient.email@example.com
                [status] => sent
                [reject_reason] => hard-bounce
                [_id] => abc123abc123abc123abc123abc123
            )
    
    )

Comments

vdroznik created an issue. See original summary.

vdroznik’s picture

A patch providing described functionality

vdroznik’s picture

Issue summary: View changes
indytechcook’s picture

Status: Active » Needs review
fmitchell’s picture

Works for me.

fmitchell’s picture

Status: Needs review » Reviewed & tested by the community
samuel.mortenson’s picture

Assigned: vdroznik » rjacobsen0
knyshuk.vova’s picture

The patch looks good and applies successfully. +1 for RTBC.

rjacobsen0’s picture

I have also verified this is working. Thanks for the good patch! Committing.

  • rjacobsen0 committed 1303e2e on 7.x-2.x authored by vdroznik
    Issue #2636166 by vdroznik, fmitchell, samuel.mortenson, indytechcook,...
rjacobsen0’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.