SMTP错误:535 5.7.8身份验证凭据无效

时间:2013-05-28 05:18:20

标签: cakephp smtp

我在项目中使用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

可能是什么原因?

1 个答案:

答案 0 :(得分:1)

这基本上是因为凭据不正确!!

可能这会对你有所帮助!!

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'] = ”;