|
我使用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
谁能告诉我为什么会这样? 为什么不能动态设置值?怎么解决呢?
|
|