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

[HELP] 发送邮件的问题

[复制链接]
发表于 2012-9-10 15:05:11 | 显示全部楼层 |阅读模式
我使用smtp来发送邮件,
其中 $config['smtp_pass'] = $strResult;

我的密码是动态取得的,如果我写成$config['smtp_pass'] = ‘正确de 密码’是可以发送邮件的,如果设置动态的变量,动态变量的值是对的。就会报一下错误:
hello: 250-hz-b-126smtp2.126.com250-mail250-PIPELINING250-8BITMIME250-AUTH LOGIN PLAIN250-AUTH=LOGIN PLAIN250 STARTTLS 0b827114-56cc-46a8-8bf0-682175fc5345Failed to authenticate password. Error: 535 authentication failed 0b827114-56cc-46a8-8bf0-682175fc5345
from: The following SMTP error was encountered:
to: The following SMTP error was encountered:
data: The following SMTP error was encountered:

The following SMTP error was encountered:
Unable to send email using PHP SMTP.  Your server might not be configured to send mail using this method.
User-Agent: CodeIgniterDate: Mon, 10 Sep 2012 14:51:10 +0800

谁能告诉我为什么会这样? 为什么不能动态设置值?怎么解决呢?

发表于 2012-9-10 15:55:51 | 显示全部楼层
ci的邮件类不太好用,还是换一个吧,我都换了呵呵

本版积分规则