9

プロジェクトで 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

その理由は何ですか?

4

1 に答える 1

6

これは基本的に、資格情報が正しくないためです!!

これはあなたを助けるかもしれません!!

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'] = ”;
于 2013-05-31T09:00:19.503 に答える