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

rsvelko’s picture

imho 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.

rsvelko’s picture

Status: Active » Needs review
Pls’s picture

Status: Needs review » Closed (duplicate)

Closed as duplicate of http://drupal.org/node/712310