set socket_options, do not check ssl peer name and certificate

This commit is contained in:
Uwe Steinmann 2018-03-09 10:23:44 +01:00
parent afcea34cf8
commit 261c65033d

View File

@ -118,9 +118,13 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify {
} }
if($this->smtp_user) { if($this->smtp_user) {
$mail_params['auth'] = true; $mail_params['auth'] = true;
// $mail_params['debug'] = true;
$mail_params['username'] = $this->smtp_user; $mail_params['username'] = $this->smtp_user;
$mail_params['password'] = $this->smtp_password; $mail_params['password'] = $this->smtp_password;
} }
/* See ticket #384 */
$mail_params['socket_options'] = array('ssl' => array('verify_peer' => false, 'verify_peer_name' => false));
$mail = Mail::factory('smtp', $mail_params); $mail = Mail::factory('smtp', $mail_params);
} else { } else {
$mail = Mail::factory('mail', $mail_params); $mail = Mail::factory('mail', $mail_params);