PHP Question2Answer email send error: SMTP connect() failed.

Post date: 2021-03-08 09:14:44
Views: 99

I configured the site and it worked fine on version PHP 5.5

Mail was sent and recaptcha worked.

Send email via SMTP instead of local mail

SMTP server port 465

Send SMTP username and password

Then I changed the server version to PHP 5.6 and everything broke. 

Recaptcha does not work:

PHP Warning:  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:nerror:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in .../qa-plugin/recaptcha-captcha/recaptchalib.php on line 128

PHP Warning:  file_get_contents(): Failed to enable crypto in .../qa-plugin/recaptcha-captcha/recaptchalib.php on line 128

PHP Warning:  file_get_contents(https://www.google.com/recaptcha/api/siteverify?secret=...&response=...

And the mail does not send:

PHP Question2Answer email send error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Then I changed the server version back to PHP 5.5 and everything started working again.

For other sites I need to upgrade the server version to 7, I think everything will break again.

How to solve a problem?

Please click Here to read the full story.
 
Other Top and Latest Questions:
Dimensions of the iGaging 6" Absolute Origin calipers?
Printer best for photographs?
Visit to Cluj - time-limited edition
requiem
I can't find the story
I need a database app that will let me do this specific thing
Multiculturalism in Slovakia c. 1900: Melting Pot or Salad Bowl?
When did my mono symptoms start? When might they end?
A follow up to my automated transcription question
Remind me of a verse, Beowulf edition