June 17th, 2013, 07:10 AM
PHP Mailer encoding problem
Hello. I am using PHP Mailer for PHP 5/6 and i am facing a problem. I am using a php function to send the final mail:
function MailSender($user, $text)
which takes two extra paramaters that contains greek text. And here is the problem. When the mail comes to my inbox contains unreadable characters for these two parameters. Although, if i write by myself the greek text in the body of php mailer, it comes corrent to my inbox without strange characters. And as i guess is a matter of these two paramaters.
I set the charset of php mailer to utf-8 but with no success. I used utf8_encode() and mb_convert_encoding() for the paramaters but nothing again. Any ideas?
Thank you in advance.
June 18th, 2013, 12:08 AM
That makes me think that the problem is not with PHPMailer, but with whatever code you're using to populate the two parameters.