fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
fsockopen(): Failed to enable crypto
fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error)
- Above are the errors that show up whenever I try to send an email.
I am using XAMPP and codeigniter
I only have windows defender and SmadAv (included this because other say its because of their anti-virus that is why they cannot send the email)
I already enabled extension=php_openssl.dll
in the C:\xampp\php\php.ini
Please Help
According to user Deep 3015 I should use cacert.pem which worked simply follow the instructions here: https://ourcodeworld.com/articles/read/196/xampp-wampp-php-ssl-certificate-error-unable-to-get-local-issuer-certificate