My company wants to host a website on a CentOS server with a contact form and with a captcha and I stumbled upon PHPMailer. The code works on my localhost, but not on CentOS. I am getting a SMTP connect() failed
error when I try to send a message to the email.
Also I notice when the captcha expires and when I click the checkbox again an error message was shown:
Cannot contact reCaptcha. Check your connection and try again.
Is it possible that it has a connection to the problem I'm having? I am still really new especially on CentOS. I've tried to google the problem, but I seem to cannot find a best solution for a fix.