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?
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