I get the error when trying to send mail, I think I need to update the openssl version, how can I do it?
Versions:
WordPress: 6.7.2
WordPress MS: No
PHP: 8.3.15
WP Mail SMTP: 4.4.0
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failedSMTP server error: QUIT command failed Detail: �!��ed��/t7��`�Ɍ
Host: smtp.gmail.com
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.1.1o 3 May 2022
Debug:
E-posta Kaynağı: WP Mail SMTP
Mailer: Diğer SMTP
SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server
SMTP Debug:
2025-03-25 18:14:09 Connection: opening to smtp.gmail.com:587, timeout=30, options=array()
2025-03-25 18:14:09 Connection: opened
2025-03-25 18:14:09 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP 5b1f17b1804b1-43d43fdec51sm209645085e9.27 - gsmtp
2025-03-25 18:14:09 CLIENT -> SERVER: EHLO .com
2025-03-25 18:14:09 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2a02:4780:41:2a32::1]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2025-03-25 18:14:09 CLIENT -> SERVER: STARTTLS
2025-03-25 18:14:09 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2025-03-25 18:14:09 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [/www/wwwroot/site.com/wp-includes/PHPMailer/SMTP.php line 495]
SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
2025-03-25 18:14:09 CLIENT -> SERVER: QUIT
2025-03-25 18:14:09
2025-03-25 18:14:09
2025-03-25 18:14:09 Connection: closed
SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed