According to http://api.drupal.org/api/function/hook_mail the $message['body] returned from an implementation of hook_mail() should be an array of lines.

user_import_mail() returns a flat value. This means that hook_mail_alter() can't easily operate on both this and other account creation emails sent to users.

Comments

joachim’s picture

Status: Active » Needs review
StatusFileSize
new1.07 KB

Here's a patch.

ryan_courtnage’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch joachim, was pulling my hair out using hook_mail_alter(). Patch looks good to me.

robert castelo’s picture

Status: Reviewed & tested by the community » Fixed

Added to dev version - thanks.

Status: Fixed » Closed (fixed)

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