用户
 找回密码
 入住 CI 中国社区
搜索
查看: 7884|回复: 7
收起左侧

[已解决] 求助:发邮件时报500 Error: bad syntax

[复制链接]
发表于 2012-7-3 14:04:14 | 显示全部楼层 |阅读模式
求助,急
发表于 2012-7-3 14:59:44 | 显示全部楼层
贴代码
 楼主| 发表于 2012-7-3 16:13:35 | 显示全部楼层
$config = array();               
                $config['protocol']  = "stmp";
                $config['stmp_host'] = "smtp.163.com";
                $config['smtp_user'] = "shuaiquan1982@163.com";
                $config['smtp_port'] = "25";
                $config['charset']   = "utf-8";
                $config['wordwrap']  = true;
                $config['SMTPAuth']  = true;
               
                $this->email->initialize($config);
                $this->email->clear();
                $this->email->from("shuaiquan1982@163.com","我是发件人");
                $this->email->to("342194345@qq.com");
                $this->email->subject("Email Test");
                $this->email->message("Testing the email class");
                $this->email->send();
               
                echo $this->email->print_debugger();
 楼主| 发表于 2012-7-3 16:15:53 | 显示全部楼层
A PHP Error was encountered

Severity: Warning

Message: mail() [function.mail]: SMTP server response: 500 Error: bad syntax

Filename: libraries/Email.php

Line Number: 1565


这是报的错误。求解答。
发表于 2012-7-3 19:44:47 | 显示全部楼层
$config['protocol']  = "stmp";
改成
$config['protocol']  = "smtp";
 楼主| 发表于 2012-7-3 21:16:09 | 显示全部楼层
谢谢
 楼主| 发表于 2012-7-3 21:16:40 | 显示全部楼层
发表于 2012-7-3 23:44:13 | 显示全部楼层

本版积分规则