【问题标题】:Cant't send mail in hosting: Expected response code 250 but got code "550",无法在主机中发送邮件:预期响应代码为 250,但得到代码“550”,
【发布时间】:2018-09-10 01:37:41
【问题描述】:

最近我在共享主机上部署了一个 laravel 项目,当我尝试发送邮件时出现此错误:

    (1/1) Swift_TransportException
     Expected response code 250 but got code "550", with message "550-
     550-Hosting ACL: unauthorized IP (67.225.178.60). Mas informacion en
     550-https://hosting.cl/bloqueo-email.php
     550 

在我的本地服务器中,它使用 gmail 凭据正确运行:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=nameemail@gmail.com
MAIL_PASSWORD=secret
MAIL_ENCRYPTION=ssl

我的共享主机中的凭据如下所示:

MAIL_DRIVER=smtp 
MAIL_HOST=domain.com.pe
MAIL_PORT=587
MAIL_USERNAME=username@domain.com.pe
MAIL_PASSWORD=secret
MAIL_ENCRYPTION=tls

注意:共享主机的电子邮件和密码在 Outlook 中完美运行。

【问题讨论】:

  • 您需要检查您的电子邮件服务提供商的 smtp 设置。

标签: email laravel-5 swiftmailer shared-hosting


【解决方案1】:

我尝试了很多方法来解决这个错误,但没有任何结果,所以我联系了我的托管服务提供商的支持,他们可以解决。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-11-15
    • 1970-01-01
    • 2022-12-30
    • 1970-01-01
    • 1970-01-01
    • 2017-07-23
    • 2021-02-02
    • 1970-01-01
    相关资源
    最近更新 更多