![](/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.