【问题标题】:Codeigniter mail Internal server errorCodeigniter 邮件内部服务器错误
【发布时间】:2012-07-05 17:03:46
【问题描述】:

尝试使用 sendmail 或 smtp 发送电子邮件时,我收到内部服务器错误。 我收到了电子邮件,但根据错误日志,cookie 出现问题:

mod_security:使用代码 500 拒绝访问。解析 cookie 时出错:规范化 cookie 值时出错:检测到无效字符 [0] [hostname "myDomain.be"] [uri "/favicon.ico"]

我不知道 favicon.ico 在那里做什么,因为我没有使用 favicon

$this->load->library('email');

    $this->email->from($this->input->post('email'), $this->input->post('name'));
            $this->email->to('xxx@xxx.com'); 

            $this->email->subject('xxxcontact');
            $this->email->message($this->input->post('message'));   
            $this->email->set_alt_message($this->input->post('message'));
            ($this->email->send())

我在配置文件中定义了我的配置。

【问题讨论】:

  • 在我看来它与您发送电子邮件后发生的事情更相关,也许是重定向?

标签: php codeigniter email internal-server-error


【解决方案1】:

请原谅我的无知,但为什么$this->email->send() 在括号中?尝试使用<?php echo $this->email->print_debugger(); ?>查看输出

【讨论】:

    猜你喜欢
    • 2017-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-03
    • 2018-02-22
    • 2012-05-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多