Viewing 2 replies - 1 through 2 (of 2 total)
  • PHP 5.6 introduces SSL certificate verification, so if your config is broken, it will fail with this error. You should fix your SSL, but you can revert to the old behaviour by setting the SMTPOptions property to not verify certificates:

    $mail->SMTPOptions = array(
    ‘ssl’ => array(
    ‘verify_peer’ => false,
    ‘verify_peer_name’ => false,
    ‘allow_self_signed’ => true
    )
    );

    Thread Starter Tim

    (@timwakeling-1)

    Thanks for the tip, zurikus! In my case I was already on PHP 5.6 so that was working fine for me, but someone else might find it helpful to know that. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 7 and MySQL 5.7’ is closed to new replies.