Jacky Chen wrote:
Hi Simone,
the code for sending emails are following:
$tr = new Zend_Mail_Transport_Smtp($mailConfig->host,
$mailConfig->options->toArray());
Zend_Mail::setDefaultTransport($tr);
$mail = new Zend_Mail('utf8');
$mail->setBodyHtml($body);
$mail->setBodyText($body);
$mail->setFrom($mailConfig->from, $mailConfig->sender);
$mail->addTo($email);
$mail->setSubject($subject);
try {
$mail->send();
return true;
} catch (Exception $e) {
return false;
}
and the subject and body contains Chinese characters.
Shouldn't the character encoding in the line...
$mail = new Zend_Mail('utf8');
...be 'utf-8' (with the dash), not 'utf8'?