简体   繁体   English

Laravel无法发送邮件无法与主机smtp.mailgun.org建立连接

[英]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.

相关问题 SMTP邮件-无法与主机建立连接的可能原因是什么? - SMTP mail - What could be possible reasons of Connection could not be established with host? 无法在 laravel 5.6 电子邮件发送中与主机 smtp.gmail.com [连接被拒绝 #111] 建立连接 - Connection could not be established with host smtp.gmail.com [Connection refused #111] in laravel 5.6 email send 无法与主机smtp.gmail.com建立连接 - Connection could not be established with host smtp.gmail.com Laravel 在Windows 7中无法使用主机smtp.gmail.com建立Laravel 5连接 - Laravel 5 Connection could not be established with host smtp.gmail.com in windows 7 无法与主机 smtp.mailtrap.io:stream_socket_client() 建立连接:使用 SENDGRID 发送邮件时 - Connection could not be established with host smtp.mailtrap.io :stream_socket_client(): when using SENDGRID to send mail 如何在实时服务器上的 Laravel 5.4 中发送电子邮件 Swift_TransportException 无法与主机 smtp.gmail.com 建立连接 - how to send email in laravel 5.4 on live server Swift_TransportException Connection could not be established with host smtp.gmail.com Lravel邮件未发送-无法与主机smtp.gmail.com建立连接[连接超时#110] - Lravel Mail not sending — Connection could not be established with host smtp.gmail.com [Connection timed out #110] Laravel 5.6 SMTP 连接无法与主机 smtp.mailtrap.io 建立 - Laravel 5.6 SMTP Connection could not be established with host smtp.mailtrap.io 无法在laravel 5.2中与主机smtp.gmail.com建立连接[连接超时#110] - Connection could not be established with host smtp.gmail.com [Connection timed out #110] in laravel 5.2 Php Laravel 5.1-无法与主机smtp.gmail.com建立连接[连接被拒绝#111] - Php Laravel 5.1- Connection could not be established with host smtp.gmail.com [Connection refused #111]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM