• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI's mail class to send e-mail, Chinese title garbled

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

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

InsiteFX

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

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

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

InsiteFX

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

It's OK now.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.