mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
fix for smtp notifications (https://forum.opnsense.org/index.php?topic=294.msg1119#msg1119)
This commit is contained in:
parent
1ba4a3d4b0
commit
9a0c07417f
@ -606,6 +606,13 @@ class smtp_class
|
||||
|
||||
Function startTLS() {
|
||||
if ($this->PutLine("STARTTLS") && $this->VerifyResultLines("220",$responses)>0) {
|
||||
$contextOptions = array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false,
|
||||
),);
|
||||
stream_context_set_option($this->connection, $contextOptions );
|
||||
|
||||
if (!stream_socket_enable_crypto($this->connection,true,STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
|
||||
return false;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user