stream_socket_enable_crypto() Error in php mailer

前端 未结 2 987
独厮守ぢ
独厮守ぢ 2021-01-28 00:40

i have Used PHP 5.3 and i have tried to send mail using php mailer LIBRARY.. but i got Error

Warning: stream_socket_enable_crypto() [streams.crypto]: thi

2条回答
  •  清歌不尽
    2021-01-28 00:59

    try

        $mail->smtpConnect = array(
            'ssl' => array(
            'verify_peer' => false,
            'verify_peer_name' => false,
            'allow_self_signed' => true
            )
        );
    
        $mail->SMTPSecure = false;
        $mail->SMTPAutoTLS = false;
    

提交回复
热议问题