【问题标题】:I need to send the mail with particular format in PHP what to do?我需要用 PHP 发送特定格式的邮件怎么办?
【发布时间】:2011-03-11 14:41:02
【问题描述】:

我正在使用 codeignitor 电子邮件 ....

我正在从数据库中获取正文内容,因此我的主题已经存储在数据库中,

hello
     subject
regards

但是当我收到消息时,我会变成这样,hellosubjectregards

任何解决方案???

【问题讨论】:

  • 你能显示这封电子邮件的标题吗?

标签: php email codeigniter


【解决方案1】:

好像您正在发送 HTML 编码的电子邮件。 由于您没有 html 标签,您可能希望发送文本编码的电子邮件。 加载电子邮件库后尝试设置“邮件类型”首选项。

$config['mailtype'] = 'text';
$this->email->initialize($config);

如果您想要更好的电子邮件,请构建一个完整的 html 电子邮件(带有 <html><head><body> 标签)

【讨论】:

    猜你喜欢
    • 2017-10-29
    • 1970-01-01
    • 2013-11-14
    • 2016-02-07
    • 2010-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多