Не удалось установить соединение с хост smtpout.secureserver.net
:stream_socket_client(): невозможно подключиться к
ssl://smtpout.secureserver.net:465 (время ожидания истекло)
Код: Выделить всё
/home/qs9govzyvf1p/public_html/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php
$host = $this->params['host'];
if (!empty($this->params['protocol'])) {
$host = $this->params['protocol'].'://'.$host;
}
$timeout = 15;
if (!empty($this->params['timeout'])) {
$timeout = $this->params['timeout'];
}
$options = [];
if (!empty($this->params['sourceIp'])) {
$options['socket']['bindto'] = $this->params['sourceIp'].':0';
}
if (isset($this->params['stream_context_options'])) {
$options = array_merge($options, $this->params['stream_context_options']);
}
$streamContext = stream_context_create($options);
set_error_handler(function ($type, $msg) {
throw new Swift_TransportException('Connection could not be established with host '.$this->params['host'].' :'.$msg);
});
try {
$this->stream = stream_socket_client($host.':'.$this->params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $streamContext);
} finally {
restore_error_handler();
}
if (!empty($this->params['blocking'])) {
stream_set_blocking($this->stream, 1);
} else {
stream_set_blocking($this->stream, 0);
}
stream_set_timeout($this->stream, $timeout);
$this->in = &$this->stream;
$this->out = &$this->stream;
}
/**
* Opens a process for input/output.
*/
Arguments
"Connection could not be established with host smtpout.secureserver.net :stream_socket_client(): unable to connect to ssl://smtpout.secureserver.net:465 (Connect ▶"
Код: Выделить всё
MAIL_MAILER=smtp
MAIL_HOST=smtpout.secureserver.net
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=admin@123
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="Khfm"
MAIL_MAILER=log
Подробнее здесь: https://stackoverflow.com/questions/791 ... figuration