VS
Size: a a a
D
VS
С
$options = ['ssl' => ['verify_peer' => false]];
$streamContext = stream_context_create($options);
set_error_handler(function ($type, $msg) {
throw new Exception(sprintf('Connection could not be established with host "%s": %s.', 'ssl://smtp.office365.com:587', $msg));
});
try {
$stream = stream_socket_client('ssl://smtp.office365.com:587', $errno, $errstr, 15, STREAM_CLIENT_CONNECT, $streamContext);
} finally {
restore_error_handler();
}
stream_set_blocking($stream, true);
stream_set_timeout($stream, 15);
Connection could not be established with host "ssl://smtp.office365.com:587": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
ВУ
$options = ['ssl' => ['verify_peer' => false]];
$streamContext = stream_context_create($options);
set_error_handler(function ($type, $msg) {
throw new Exception(sprintf('Connection could not be established with host "%s": %s.', 'ssl://smtp.office365.com:587', $msg));
});
try {
$stream = stream_socket_client('ssl://smtp.office365.com:587', $errno, $errstr, 15, STREAM_CLIENT_CONNECT, $streamContext);
} finally {
restore_error_handler();
}
stream_set_blocking($stream, true);
stream_set_timeout($stream, 15);
Connection could not be established with host "ssl://smtp.office365.com:587": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
С
ВУ
КГ
КГ
КГ
SZ
AD
КГ
AD