[英]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');
});
i'am getting this error: 我收到此错误:
Connection could not be established with host smtp.mailgun.org
how to fix this? 如何解决这个问题?
using laravel-4 使用laravel-4
There is no such problem with mailgun. mailgun没有这种问题。 The problem might be with your internet server provider blocking outbound SMTP traffics (contact them for this issue) or you might have issue with your network connections especially with firewall settings. 问题可能出在您的Internet服务器提供商阻止出站SMTP通信(请与他们联系以解决此问题),或者您的网络连接(尤其是防火墙设置)可能存在问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.