【问题标题】:Laravel Failed to authenticate on SMTP server with username "xxxxxxxx" using 2 possible authenticatorsLaravel 无法使用 2 个可能的身份验证器在用户名“xxxxxxxx”的 SMTP 服务器上进行身份验证
【发布时间】:2019-10-06 04:29:02
【问题描述】:

我正在尝试在 Laravel 中重置密码电子邮件控制器。
我在 .env 文件中更改我的 MAIL 配置,如下所示:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.aruba.it
MAIL_PORT=465
MAIL_USERNAME=xxxxxxxxxxxx
MAIL_PASSWORD=xxxxxxxxxxxx
MAIL_ENCRYPTION=SSL

我收到了这个错误:

Swift_TransportException
Failed to authenticate on SMTP server with username 
"xxxxxxxxxxxx" using 2 possible authenticators. 
Authenticator LOGIN returned Expected response code 235 but got code 
"535", with message "535 5.7.0 ...authentication rejected ". 
Authenticator PLAIN returned Expected response code 235 but got code 
"535", with message "535 5.7.0 ...authentication rejected

我该如何解决?

【问题讨论】:

    标签: laravel smtp


    【解决方案1】:
    MAIL_DRIVER=smtp
    MAIL_HOST=smtp.mailtrap.io
    MAIL_PORT=2525
    MAIL_USERNAME=<mailtrap username>
    MAIL_PASSWORD=<mailtrap passsword>
    MAIL_ENCRYPTION=SSL
    
    
    signup https://mailtrap.io  after signin they provide demo inbox then click on demo inbox. right hand side you get your username & password. just copy and paste
    

    【讨论】:

    • 哪个供应商?
    • 我想连接到 smtp.aruba.it,而不是 smtp.mailtrap.io
    【解决方案2】:
    MAIL_DRIVER=smtp
    MAIL_HOST=smtp.aruba.it
    MAIL_PORT=465 or 25 
    MAIL_USERNAME=xxxxxxxxxxxx
    MAIL_PASSWORD=xxxxxxxxxxxx      //in your aruba account. aren't they provided any password like mailtrap.
    MAIL_ENCRYPTION=SSL ot tls
    i am not sure about this but you can try once
    

    【讨论】:

    • 和我的配置一样。我的提供商 Aruba 给了我用户名和密码,但我收到了错误消息。我的问题是:那是什么错误?什么意思 ?是身份验证问题吗?
    猜你喜欢
    • 2018-01-13
    • 2021-06-11
    • 1970-01-01
    • 2019-01-20
    • 1970-01-01
    • 2020-12-21
    • 2019-10-02
    • 2019-09-16
    • 2020-06-11
    相关资源
    最近更新 更多