我在我的项目中使用jango smtp设置。
下面是我的代码:
funcation sendmail()
{
$this->Email->smtpOptions = array(
'timeout' => '30',
'port' => '25',
'host' => 'relay.jangosmtp.net',
'username' => 'xxxx',
'password' => '1234567'
);
}
sendmail函数给出以下错误:
SMTP Error: 535 5.7.8 Authentication credentials invalid
可能的原因是什么?
发布于 2013-05-31 17:00:20
这基本上是因为凭据不正确!!
也许这会对你有帮助!
535 Authentication failed. Restarting authentication process.
如果SMTP客户端进行了身份验证,但用户名或密码不正确,或者帐户被禁用,则hMailServer会将此错误消息发送到客户端。
http://support.qualityunit.com/156325-Email-is-not-sent-because-of-failed-authentication
SMTP error 535 authentication failed in roundcube
SMTP Error (435): Authentication failed
如果您在从圆形立方体发送电子邮件时遇到SMTP错误535验证失败,那么您可以检查以下内容。
[root@server1 ~]# vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php
并且改变了
$rcmail_config['smtp_user'] = ‘%u’;
to
$rcmail_config['smtp_user'] = ”;
https://stackoverflow.com/questions/16784368
复制相似问题