Project

General

Profile

« Previous | Next » 

Revision 0b76ff3b

Added by Jim Pingle over 6 years ago

Add checkbox to disable SMTP SSL cert verification. Implements #9001

The default action is to validate the certificate. If the user knows the
server does not have a valid certificate (e.g. self-signed), this option
will allow encryption to be used without validating the identity of the
server.

(cherry picked from commit 7da466e1c4b6873b9fb80e862faf8f799a6d4531)

View differences:

src/etc/inc/notices.inc
396 396
		'persist' => false
397 397
	);
398 398

  
399
	if ($config['notifications']['smtp']['sslvalidate'] == "disabled") {
400
		$params['socket_options'] = array('ssl' => array('verify_peer_name' => false));
401
	}
402

  
399 403
	if ($config['notifications']['smtp']['fromaddress']) {
400 404
		$from = $config['notifications']['smtp']['fromaddress'];
401 405
	} else {

Also available in: Unified diff