I've got a script in PHP that's been running fine for months. It recently stopped working.
This script connects to gmail to send out an email to my customers.
Recently, I started getting this error when I run the script:
The SMTP connection failed to start [tls://smtp.gmail.com:465]: fsockopen returned Error Number 0 and Error String 'php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution'
Keep in mind, this was with zero code changes.
I've looked at my resolv.conf and it appears to be ok:
I can ping gmail.com:
# ping smtp.gmail.com PING gmail-smtp-msa.l.google.com (184.108.40.206) 56(84) bytes of data. 64 bytes from qw-in-f111.google.com (220.127.116.11): icmp_seq=1 ttl=247 time=26.7 ms
I can connect via lynx to google and other sites with no problem.
I've logged into my gmail account with no problems (no captcha there either).
I am at wits end. Anyone have any ideas?