The function drupal_mail_wrapper references "$mailkey", but $mailkey doesn't seem to be defined.

I think the following line fixes it:

$mailkey = $message['id'];

Comments

timtrinidad’s picture

Status: Active » Closed (duplicate)