Closed (duplicate)
Project:
SMTP Authentication Support
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2009 at 19:31 UTC
Updated:
27 May 2012 at 10:23 UTC
I've seen the module uses phpmailer class to send mail, but this class sets $CharSet to iso-8859-1: since drupal uses utf-8 for everything, shouldn't the class be set to utf-8 as well?
Comments
Comment #1
rsvelko commentedimho it should...
(phpmailer 2.2.1 | smtp.module version = "6.x-1.0-beta5" )
I tried patching smtp.module - the line where it sets $mailer->CharSet
even when you set it to "UTF-8" - it still uses iso-8859-1 - cause phpmailer/class.phpmailer.php uses a default of iso-8859-1...
the stupid solution is to change the phpmailer class default - search for iso-8859 there...
Here is what I did:
phpmailer/class.phpmailer.php :
public $CharSet = 'UTF-8';
If someone can test this for 5 mins and come up with a way to control this in the smtp module... itl be super.
Comment #2
rsvelko commentedComment #3
Pls commentedClosed as duplicate of http://drupal.org/node/712310