Wenn ich E-Mail über Laravel für das Senden von GMail SMTP zu verwenden versuchen, festgestellt werden kann, begegne ich die folgende Fehlermeldung:Mit gmail smtp über Laravel: Anschluss nicht mit Host smtp.gmail.com [Connection timed out # 110]
Swift_TransportException
Connection could not be established with host smtp.gmail.com [Connection timed out #110]
Es ist die Spur des Fehlers:
...
}
$this->_stream = @stream_socket_client($host.':'.$this->_params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, stream_context_create($options));
if (false === $this->_stream) {
throw new Swift_TransportException(
'Connection could not be established with host ' . $this->_params['host'] .
' [' . $errstr . ' #' . $errno . ']'...
und hier meine Konfiguration für E-Mail sind:
'driver' => 'smtp',
'host' => 'smtp.gmail.com',
'port' => 587,
'from' => array('address' => '[email protected]', 'name' => 'some'),
'encryption' => 'tls',
'username' => '[email protected]',
'password' => 'mypassword',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false
Ich benutze einen Shared Host und der Port 587 auf localhost ist offen.
Und Sie verwendeten SMTP von Google Mail? dann denke ich, dass der Fahrer smtp sein sollte, nicht? – Ahmad
Dies geht durch, aber die ** E-Mail ** sendet nicht. – ihue
Wo könnte ich diese Konfigurationen finden? – mr5