不能在托管中发送邮件:预期的响应代码250,但代码为“550”,

时间:2018-03-31 04:06:07

标签: email laravel-5 swiftmailer shared-hosting

最近我在我的共享主机上部署了一个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中完美运行。

1 个答案:

答案 0 :(得分:0)

我尝试了很多东西来解决这个错误而没有,所以我联系了我的托管服务提供商的支持,他们可以解决。