![](/img/trans.png)
[英]SMTP mail - What could be possible reasons of Connection could not be established with host?
[英]Laravel can't send mail Connection could not be established with host smtp.mailgun.org
Mail::send('emails.test_layout', $data, function($message)
{
$message->to('myemail@gmail.com', 'test')->subject('test request');
});
我收到此错误:
Connection could not be established with host smtp.mailgun.org
如何解决这个问题?
使用laravel-4
mailgun没有这种问题。 问题可能出在您的Internet服务器提供商阻止出站SMTP通信(请与他们联系以解决此问题),或者您的网络连接(尤其是防火墙设置)可能存在问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.