Hi,
I'm using mass contact (6.x-1.0-beta2) in conjunction with SMTP Authentication Support (6.x-1.0-beta3) on a up-to-date Drupal site (6.13). I have no other mail modules installed (AFAIK).
When sending mails, the charset used in the mail is "iso-8859-1", even if I set the "Charachter Set" entry to "UTF-8" resulting in some very ugly UTF-8 code in the mail.
The regular contact form sends mails with the proper encoding.
Any idea, why and how this is changed.
Would an update to the 3.x-dev branch help?
Comments
Comment #1
skybow commentedAfter running the code inside the debugger, I found something within the file
class.phpmailer.php: There the default charset ist set to "iso-8859-1".Since I send my mass contact mails as both plain and html mail, the content type used is "multipart/alternative" (which is certainly correct from the mass_contact perspective)
However, the SMTP module won't modify the charset encoding which results in mass_contact sending in "utf-8" and PHPMailer interpreting this as "iso-8859-1".
So my fix is to set the default encoding to "utf-8" in
class.phpmailer.phpAll in all, the problem is not a particular mass_contact problem. The question is, if this should be considered a SMTP module bug.
Comment #2
oadaeh commentedIf the problem still exists, it would be a PHPMailer bug.