Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- phpmailer and utf-8
July 28, 2009, 3:11 pm
rate this thread
I'm using phpmailer class for sending e-mails as below.
$mail = new PHPMailer();
$mail->CharSet = 'utf-8';
$mail->From = 'firstname.lastname@example.org';
$mail->FromName = 'Info Domain.com';
$mail->Subject = $subject;
$mail->Body = $body;
Everything is okay, but I'have a problem with receiving e-mails in
right character set. In my Mozilla Thunderbird is mail in right
character set, but in SquirrelMail are bad characters. If I try to
sent message as iso-8859-2, everything is okay - so maybe problem in
SquirrelMail. Is any directive in php.ini, etc. which can change this?
Or where is a problem? Everything seems ok, but it isn't.
Thanks for yout help.
July 29, 2009, 6:41 am
Re: phpmailer and utf-8
-----BEGIN PGP SIGNED MESSAGE-----
Tomáš Kavalek wrote:
Is the content to you try to send in utf8 ?
Where are the bad characters Subject or body ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
-----END PGP SIGNATURE-----