CodeIgniter Forums

Full Version: CI's mail class to send e-mail, Chinese title garbled
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]smartweb[/eluser]
CI's mail class to send e-mail, Chinese title garbled.

El Forum

[eluser]InsiteFX[/eluser]
Well that really tell's us alot!

InsiteFX

El Forum

[eluser]smartweb[/eluser]
Send e-mail with ci, Chinese subject is garbled.

El Forum

[eluser]smartweb[/eluser]
$subject="chinese subject:中文标题是乱码";
$this->email->from($smtp_user, $title);
$this->email->to($sendto);
$this->email->subject($subject);
$this->email->message($msg);
$this->email->send();

El Forum

[eluser]InsiteFX[/eluser]
CodeIgniter User Guide - Language Class

InsiteFX

El Forum

[eluser]smartweb[/eluser]
I defined two parameters, so causing the problem.
// $config['newline'] = "\r\n";
//$config['crlf'] = "\r\n";

It's OK now.