2
respostas

erro ao enviar

O meu está dando esse erro podem me ajudar?

Erro ao enviar mensagem SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in C:\xampp\htdocs\email_lot\class.smtp.php on line 358

2 respostas

Tem um erro na linha 358 do teu código class.smtp.php, manda pra gente verificar rs

No link abaixo tem a descrição deste erro

https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Procure pelo título "PHP 5.6 certificate verification failure"

Na explicação também tem uma sugestão de correção, você pode tentar inserir os seguintes parâmetros na rotina que manda o e-mail:

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