Re-indent code of PR #2560

This commit is contained in:
Frederic Guillot 2016-08-07 13:43:18 -04:00
parent f0192a7b2e
commit 508a5eaf85
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
1 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,13 @@ class Smtp extends Mail
$transport->setPassword(MAIL_SMTP_PASSWORD);
$transport->setEncryption(MAIL_SMTP_ENCRYPTION);
if (HTTP_VERIFY_SSL_CERTIFICATE === false) {
$transport->setStreamOptions(array('ssl' => array('allow_self_signed' => true, 'verify_peer' => false, 'verify_peer_name' => false,)));
$transport->setStreamOptions(array(
'ssl' => array(
'allow_self_signed' => true,
'verify_peer' => false,
'verify_peer_name' => false,
)
));
}
return $transport;