mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge branch 'support/3.0' into develop
# Conflicts: # sources/Core/Email/EmailSwiftMailer.php Email by SMTP with self-signed certificate ported from EmailSwiftMailer to EmailLaminas
This commit is contained in:
@@ -170,6 +170,8 @@ class EMailLaminas extends Email
|
||||
$sEncryption = self::$m_oConfig->Get('email_transport_smtp.encryption');
|
||||
$sUserName = self::$m_oConfig->Get('email_transport_smtp.username');
|
||||
$sPassword = self::$m_oConfig->Get('email_transport_smtp.password');
|
||||
$bAllowSelfSigned = static::$m_oConfig->Get('email_transport_smtp.allow_self_signed');
|
||||
$bVerifyPeer = static::$m_oConfig->Get('email_transport_smtp.verify_peer');
|
||||
|
||||
$oTransport = new Smtp();
|
||||
$aOptions = [
|
||||
@@ -179,6 +181,8 @@ class EMailLaminas extends Email
|
||||
'connection_config' => [
|
||||
'ssl' => $sEncryption,
|
||||
],
|
||||
'allow_self_signed' => $bAllowSelfSigned,
|
||||
'verify_peer' => $bVerifyPeer,
|
||||
];
|
||||
if (strlen($sUserName) > 0) {
|
||||
$aOptions['connection_config']['username'] = $sUserName;
|
||||
|
||||
Reference in New Issue
Block a user