0

When I tried to sending email from gmail using PHPMailer, I have a trouble with certificate of OpenSSL. How could I fix that?

2015-10-30 17:12:21 CLIENT -> SERVER: EHLO localhost
2015-10-30 17:12:21 CLIENT -> SERVER: STARTTLS 
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....location folder.
2015-10-30 17:12:22 SMTP Error: Could not connect to SMTP host.
2015-10-30 17:12:22 CLIENT -> SERVER: QUIT
2015-10-30 17:12:22 SMTP ERROR: QUIT command failed:
2015-10-30 17:12:22 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Message could not be sent.Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Marc B
  • 356,200
  • 43
  • 426
  • 500
kokorambo
  • 41
  • 5
  • This might be helpful: [PHP 5.6 certificate verification failure](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#user-content-php-56-certificate-verification-failure). Also see [certificate verify failed](http://stackoverflow.com/questions/26827192/phpmailer-ssl3-get-server-certificatecertificate-verify-failed). – showdev Oct 30 '15 at 17:32
  • I had fixed this. Tks a lot! – kokorambo Oct 31 '15 at 19:16
  • It is recommended to post your answer and accept it to close this question properly and let others benefit from it. – Mohammed Akhtar Zuberi Sep 23 '18 at 09:33

0 Answers0