Issue

When using the HTML Email action in rules providing a custom name and from address the email received is from 'Array@serverinternalemail.com'. This is because the rules_action_email function is passing an array of the name and email to the from parameter of the drupal_mail function.

Fix

We need to use the mimemail_address function to convert the array into a string that can be used by the drupal_mail function.

Patch incoming.

Comments

edb’s picture

StatusFileSize
new512 bytes

Patch attached

edb’s picture

Status: Active » Needs review
Island Usurper’s picture

Got bitten by this today. +1 for patch. Bump to get it to the top of the issue queue.

sgabe’s picture

I cannot reproduce, mimemail_headers() should take care of this, see mimemal_prepare_message(). Are you using your own custom mail engine?

sgabe’s picture

sgabe’s picture

Priority: Major » Normal
StatusFileSize
new1.75 KB
sgabe’s picture

Title: Sending a HTML Email using rules with a custom From address does not work » Custom 'from' address comes out as 'Array'
Assigned: edb » Unassigned
Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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