Changeset:
4667e94f6722
https://sourceforge.net/p/mrbs/hg-code/ci/4667e94f67228d071cc284d2e8d3c0d1e05eb425
Author:
John Beranek <[email protected]>
Date:
Sat Mar 11 11:00:30 2017 +0000
Log message:
Added even more options for configuring PHPMailer TLS settings.
diffstat:
web/functions_mail.inc | 9 +++++++++
web/systemdefaults.inc.php | 6 ++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diffs (35 lines):
diff -r d7825f877dcb -r 4667e94f6722 web/functions_mail.inc
--- a/web/functions_mail.inc Sat Mar 11 10:03:49 2017 +0000
+++ b/web/functions_mail.inc Sat Mar 11 11:00:30 2017 +0000
@@ -1197,6 +1197,15 @@
{
$mail->SMTPAutoTLS = false;
}
+ $mail->SMTPOptions = array
+ (
+ 'ssl' => array
+ (
+ 'verify_peer' => $smtp_settings['ssl_verify_peer'],
+ 'verify_peer_name' => $smtp_settings['ssl_verify_peer_name'],
+ 'allow_self_signed' => $smtp_settings['ssl_allow_self_signed']
+ )
+ );
break;
default:
$mail->isMail();
diff -r d7825f877dcb -r 4667e94f6722 web/systemdefaults.inc.php
--- a/web/systemdefaults.inc.php Sat Mar 11 10:03:49 2017 +0000
+++ b/web/systemdefaults.inc.php Sat Mar 11 11:00:30 2017 +0000
@@ -1085,6 +1085,12 @@
$smtp_settings['disable_opportunistic_tls'] = false; // Set this to true to
disable
// opportunistic TLS
//
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#opportunistic-tls
+// If you're having problems with sending email to a TLS-enabled SMTP server
*which you trust* you can change the following
+// settings, which reduce TLS security.
+// See
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#php-56-certificate-verification-failure
+$smtp_settings['ssl_verify_peer'] = true;
+$smtp_settings['ssl_verify_peer_name'] = true;
+$smtp_settings['ssl_allow_self_signed'] = false;
// EMAIL - MISCELLANEOUS
// ---------------------
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits