luohuijun 发表于 2010-3-19 14:07:02

怎样用view()给邮件模板赋值,并返回整个模板的代码

比如:
$tpls=array(
      'user_name'=>$user_name,'
      content'=>$content,'
      keyword'=>$keyword,'
      date'=>$date,'
       base_url'=>$this->base_url
);
$template=$this->load->view('reminder/email_templates/default',$tpls,true);

我将$template发送到用户邮箱后都显示HTML源代码,
各位前辈请问这是怎么回事了

jeongee 发表于 2010-3-19 15:11:00

你那边邮箱显示内容不支持显示html啊?

yinzhili 发表于 2010-3-19 16:16:38

请确认mailtype参数是否设置正确了:
http://codeigniter.org.cn/user_guide/libraries/email.html
页: [1]
查看完整版本: 怎样用view()给邮件模板赋值,并返回整个模板的代码