Bug with subject mime encoding
Ilya1st - August 15, 2009 - 22:28
| Project: | SMTP Authentication Support |
| Version: | 6.x-1.0-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
There is error while seunding mail with letter subject.
It's not mime encoded that's why there are problems with national characters.
for 6.x module in function drupal_mail_wrapper
Line 480: $mail->Subject = $subject;
must be $mail->Subject = mime_header_encode($subject);
There is a same error for 5.x version of module.
Because wrong subjects sometimes users can not read them.

#1
I think this is related to issue http://drupal.org/node/465750
The PHPMailer class should take care of subject encoding, however, that is not happening when the public property $CharSet in PHPMailer class (line 59) is set to "iso-8859-1", as it is defaut. Hacking this to "utf-8" will clear the problem with the unencoded subject.
#2
duplicate of #465750: Sends non-English mails with garbled characters (uses iso-8859-1 instead of utf-8)
Please check dev version for error.