diff --git a/common/widgets/Mailer.php b/common/widgets/Mailer.php index 226d0e6..a18485f 100755 --- a/common/widgets/Mailer.php +++ b/common/widgets/Mailer.php @@ -24,13 +24,13 @@ class Mailer extends Widget{ $mail = new \PHPMailer(); $mail->IsSMTP(); - $mail->smtpConnect([ - 'ssl' => [ + $mail->SMTPOptions = array( + 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true - ] - ]); + ) + ); $mail->CharSet = 'UTF-8'; $mail->Username = "adwords@artweb.ua"; $mail->Password = "eks,ybcm5hfp"; -- libgit2 0.21.4