この内容は古いバージョンです。最新バージョンを表示するには、戻るボタンを押してください。
バージョン:1
ページ更新者:男石
更新日時:2020-04-29 21:20:27

タイトル: Failed to authenticate on SMTP server with username ...
SEOタイトル: 【Laravelエラー】Failed to authenticate on SMTP server with username ...

エラー内容

[2020-04-29 20:21:09] local.ERROR: Failed to authenticate on SMTP server with username " ... @gmail.com" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials q11sm936417pfl.97 - gsmtp
". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials q11sm936417pfl.97 - gsmtp
". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials q11sm936417pfl.97 - gsmtp
". {"userId":1,"email":"luxcale@gmail.com","exception":"[object] (Swift_TransportException(code: 0): Failed to authenticate on SMTP server with username \" ... @gmail.com\" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code \"535\", with message \"535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials q11sm936417pfl.97 - gsmtp
\". Authenticator PLAIN returned Expected response code 235 but got code \"535\", with message \"535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials q11sm936417pfl.97 - gsmtp
\". Authenticator XOAUTH2 returned Expected response code 250 but got code \"535\", with message \"535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8  https://support.google.com/mail/?p=BadCredentials q11sm936417pfl.97 - gsmtp
\". at C:\\T\\Projects\\gaz\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\Esmtp\\AuthHandler.php:191)
[stacktrace]

 

発生条件/原因/対処法

前提: 送信元メールにgmailを使用している。

以下、セキュリティリスクのある対処法なので、自己責任でお願いします。

Laravelのメールが突然飛ばなくなるエラー。

対象のgmailでGoogleにログインした状態で、以下のサイトで「安全性の低いアプリの許可」を有効にする。

https://myaccount.google.com/u/1/lesssecureapps?pageId=none