mercredi 30 décembre 2015

Laravel - Connection could not be established with host smtp.gmail.com

I'm trying to send an email using the standard email feature in Laravel 5.

I'm using smtp from google to send mails. When working local the email sends without a problem. But when I'm trying to do the same on my hosting (one.com) I get the following error.

Swift_TransportException in StreamBuffer.php line 265:
Connection could not be established with host smtp.gmail.com [Connection timed out #110]
in StreamBuffer.php line 265
at Swift_Transport_StreamBuffer->_establishSocketConnection() in StreamBuffer.php line 62
at Swift_Transport_StreamBuffer->initialize(array('protocol' => 'tcp', 'host' => 'smtp.gmail.com', 'port' => '587', 'timeout' => '30', 'blocking' => '1', 'tls'     => true, 'type' => '1')) in AbstractSmtpTransport.php line 113
at Swift_Transport_AbstractSmtpTransport->start() in Mailer.php line 79



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1JgkAGa
via IFTTT

Aucun commentaire:

Enregistrer un commentaire