CodeIgniter Forums
CI's mail class to send e-mail, Chinese title garbled - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: CI's mail class to send e-mail, Chinese title garbled (/thread-42721.html)



CI's mail class to send e-mail, Chinese title garbled - El Forum - 06-16-2011

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


CI's mail class to send e-mail, Chinese title garbled - El Forum - 06-16-2011

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

InsiteFX


CI's mail class to send e-mail, Chinese title garbled - El Forum - 06-16-2011

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


CI's mail class to send e-mail, Chinese title garbled - El Forum - 06-16-2011

[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();


CI's mail class to send e-mail, Chinese title garbled - El Forum - 06-16-2011

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

InsiteFX


CI's mail class to send e-mail, Chinese title garbled - El Forum - 06-16-2011

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

It's OK now.