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

jsd*_*iya 5 smtp cakephp

我在我的项目中使用jango smtp设置.

以下是我的代码:

funcation sendmail()
{

$this->Email->smtpOptions = array(

  'timeout' => '30',

  'port' => '25', 

  'host' => 'relay.jangosmtp.net',

  'username' => 'xxxx',

  'password' => '1234567'

);
}
Run Code Online (Sandbox Code Playgroud)

sendmail函数给出以下错误:

SMTP Error: 535 5.7.8 Authentication credentials invalid
Run Code Online (Sandbox Code Playgroud)

可能是什么原因?

Jav*_*der 8

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

\n\n

也许这会对你有帮助!

\n\n
535 Authentication failed. Restarting authentication process.\n
Run Code Online (Sandbox Code Playgroud)\n\n

如果 SMTP 客户端进行身份验证,但用户名或密码不正确,或者帐户被禁用,hMailServer 会向客户端发送此错误消息。

\n\n

http://support.qualityunit.com/156325-Email-is-not-sent-because-of-failed-authentication

\n\n
SMTP error 535 authentication failed in roundcube\n\nSMTP Error (435): Authentication failed\n
Run Code Online (Sandbox Code Playgroud)\n\n

如果您在从 RoundCube 发送电子邮件时遇到 SMTP 错误 535 身份验证失败,那么您可以检查以下内容。

\n\n
[root@server1 ~]# vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php\n
Run Code Online (Sandbox Code Playgroud)\n\n

并改变了

\n\n
$rcmail_config[\'smtp_user\'] = \xe2\x80\x98%u\xe2\x80\x99;\nto\n$rcmail_config[\'smtp_user\'] = \xe2\x80\x9d;\n
Run Code Online (Sandbox Code Playgroud)\n