duanao4729 2017-04-17 17:59
浏览 45

CodeIgniter PHP Mailer问题

     $MSG = "Dear " . $student['firstname'] . " " . $student['lastname'] . ", " . $student['class'] . " " . $student['section'] . " your userid & pass for school SIS is " . $student['username'] . " & " . $student['password'] . " Login at: " . $stu_setting['short_url'] . ", Welcome to " . $stu_setting['name'] . ".";
    $skool = "Welcome to " . $stu_setting['name'] . " SIS";
    $to_email = 'support@digitave.com';
     $this->CI->email->from('noreply@digi-sis.org'); 
     $this->CI->email->to($to_email);
     $this->CI->email->subject($skool); 
     $this->CI->email->message($MSG);    
     $this->CI->email->send();

using https://github.com/ivantcholakov/codeigniter-phpmailer for sending Email in CI, but whenever i am trying to send an email it changes the variables values in random mixed characters. but it loads $MSG correctly.

Mail Screenshot: https://i.stack.imgur.com/1wDkm.png

  • 写回答

1条回答 默认 最新

  • dongshu4221 2017-04-17 18:25
    关注

    Changing crlf to and setting charset UTF-8 solved the problem.

    评论

报告相同问题?

悬赏问题

  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码