So I've created this feedback form for my website with PHPMailer using Google Apps SMTP which was working fine. But it is not working now, I get this error message:
SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host
openssl is active, port 465 is open.
IMAP,POP is enabled in my gmail account.
My gmail address is not blocked.
I tried with another Gmail account and still no results.
I've been searching for a solution for the past couple of days and I'm completely stumped. Any help would be appreciated. Thanks in advance.