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
Comment #1
giannisr commentedI dont know what caused that issue but i made a clean installation of MIME Mail and everything works fine now
Comment #2
dshields commentedI've run into this a few times as well
Can't figure out what the issue is..
Comment #3
dshields commentedRather 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
Comment #4
Shellingfox commentedHere 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.
Comment #5
sgabe commentedAre you using custom mail system implementations to send the message?
Comment #6
Shellingfox commentedNo, i'm using mailsystem and the default mail inteface is HTMLMailSystem
Comment #7
sgabe commentedThis seems to be a duplicate of #1790098: Custom 'from' address comes out as 'Array'.