Posted by skybow on August 26, 2009 at 11:25am
Jump to:
| Project: | Mass Contact |
| Version: | 6.x-1.0-beta2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (works as designed) |
Issue Summary
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
#1
After 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.
#2
If the problem still exists, it would be a PHPMailer bug.