Hello,

i have setup a rule to send email after completing checkout process. It was working like a charm but suddenly i get this message when the checout process is completed.

Warning: preg_match() expects parameter 2 to be string, array given in mime_header_encode() (line 374 of /home/domain/public_html/includes/unicode.inc).

Except of this, when the email arrives the senders email is : Array@serversname.com .

The only things that i have change is that i installed, tried and unintsalled SMTP authentication module and uninstall and install again the Diff module.

Any help please?

Comments

giannisr’s picture

I dont know what caused that issue but i made a clean installation of MIME Mail and everything works fine now

dshields’s picture

I've run into this a few times as well
Can't figure out what the issue is..

dshields’s picture

Rather than use direct input method, choose the sending email address from an available variable.
Seems to do the trick, but I'm not sure why it makes a difference

Shellingfox’s picture

Status: Active » Needs review
StatusFileSize
new1.11 KB

Here is my patch to fix this problem.

With my test, the rules create from this module using invaild $from value, it send to drupal_mail an array and it'll make this issue because it send directly array to mime_header_encode.

sgabe’s picture

Are you using custom mail system implementations to send the message?

Shellingfox’s picture

No, i'm using mailsystem and the default mail inteface is HTMLMailSystem

sgabe’s picture

Component: Miscellaneous » Code
Category: support » bug
Status: Needs review » Closed (duplicate)