【问题标题】:Failed to authenticate on SMTP server with username "apikey" using 2 possible authenticators in SendGrid无法使用 SendGrid 中的 2 个可能的身份验证器在用户名“apikey”的 SMTP 服务器上进行身份验证
【发布时间】:2020-12-21 07:51:20
【问题描述】:

尝试通过 SendGrid SMTP 发送电子邮件时出现以下错误。

Failed to authenticate on SMTP server with username "apikey" using 2 possible authenticators. Authenticator LOGIN returned the Expected response code 250 but got an empty response. Authenticator PLAIN returned Expected response code 250 but got an empty response.

MAIL_DRIVER=smtp
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=apikey
MAIL_PASSWORD=mysecretkey
MAIL_ENCRYPTION=tls
MAIL_FROM_NAME="RPLS"
MAIL_FROM_ADDRESS=info@rtsss.com

【问题讨论】:

  • 输入Base64编码的API用户名。大家的usernameapikey,也就是Base64中的YXBpa2V5。转到链接sendgrid.com/docs/API_Reference/SMTP_API/… 它可以帮助您
  • Sendgrid 可能会要求您将发送此邮件的 IP 列入白名单。

标签: laravel email sendgrid


【解决方案1】:

在 Sendgrid 仪表板中检查您的 IP 是否被列入白名单 https://app.sendgrid.com/settings/access

【讨论】:

    猜你喜欢
    • 2021-06-11
    • 2019-01-20
    • 2018-01-13
    • 2019-10-06
    • 1970-01-01
    • 1970-01-01
    • 2019-10-02
    • 2019-09-16
    • 2020-03-10
    相关资源
    最近更新 更多