Apr 7th, 2009, 2:50 PM
Hi Yettn,
Ahh... you make a good point. Swift Mailer uses ISO-8559-1 by default - which is actually incorrect. It should use UTF-8, since that's the format in which the information is stored.
As a temporary fix, try this. On line 172 of the /modules/swift_mailer/library.php file, add this line:
This is right before these two lines:
Clearly, this should be a configurable option.
I plan on adding this and the option to define the return-path header in an upcoming release of the module. Once it's available, you can just upgrade and use that instead - but in the meantime hopefully the above will suffice.
Let me know if it works, btw!
- Ben
Ahh... you make a good point. Swift Mailer uses ISO-8559-1 by default - which is actually incorrect. It should use UTF-8, since that's the format in which the information is stored.
As a temporary fix, try this. On line 172 of the /modules/swift_mailer/library.php file, add this line:
PHP Code:
$email->setCharset("utf-8");
This is right before these two lines:
PHP Code:
// now compile the recipient list
$recipients =& new Swift_RecipientList();
Clearly, this should be a configurable option.
I plan on adding this and the option to define the return-path header in an upcoming release of the module. Once it's available, you can just upgrade and use that instead - but in the meantime hopefully the above will suffice.
Let me know if it works, btw!
- Ben