For about six months I have been able to send email through gmail's SMTP server without issues, but now it's not working. This is from a co-located server and there is no port blocking or firewall that might be interfering. The server is CentOS 4 and it might be possible that a software update caused the problem, but I can't see any updates that look suspicious.
Googling the error number doesn't help and there is no error message.
Error:
Because this is my own server I can change anything that needs changing to get the problem fixed.Fatal error: Uncaught exception 'Swift_Connection_Exception' with message 'The SMTP connection failed to start [tls://smtp.gmail.com:465]: fsockopen returned Error Number 158556472 and Error String ''' in /var/www/libs/swiftmailer/Swift/Connection/SMTP.php:277 Stack trace: #0 /var/www/libs/swiftmailer/Swift.php(218): Swift_Connection_SMTP->start() #1 /var/www/libs/swiftmailer/Swift.php(95): Swift->connect() #2 /var/www/htdocs/src/email.php(200): Swift->__construct(Object(Swift_Connection_SMTP)) #3 {main} thrown in /var/www/libs/swiftmailer/Swift/Connection/SMTP.php on line 277
Thanks.