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
There is no such problem with 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.