Skip to content

Commit ea341c9

Browse files
committed
Merge branch 'master' of ssh://github.com/LiveHelperChat/livehelperchat
2 parents d76a772 + 1d1663d commit ea341c9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎lhc_web/lib/core/lhmailconv/lhmailconvvalidator.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,15 @@ public static function setSendParameters($mailbox, $phpmailer)
602602
$phpmailer->Host = $mailbox->host;
603603
$phpmailer->Port = $mailbox->port;
604604

605+
// To work with various SMTP servers
606+
$phpmailer->SMTPOptions = array(
607+
'ssl' => array(
608+
'verify_peer' => false,
609+
'verify_peer_name' => false,
610+
'allow_self_signed' => true
611+
)
612+
);
613+
605614
$phpmailer->From = $mailbox->mail_smtp != '' ? $mailbox->mail_smtp : $mailbox->mail;
606615
$phpmailer->FromName = $mailbox->name_smtp != '' ? $mailbox->name_smtp : $mailbox->name;
607616

0 commit comments

Comments
 (0)