Errors while sending via PHP

Errors while sending via PHP

Hello all,

I've been using Zoho for about 12 months now to deliver mail for one of my websites. About a month ago I started having issues randomly with sending mail. I'd say 1 out of every 20 mails fails with the following error:

2017-04-17 19:45:04 - PHP Warning:  fsockopen(): SSL: crypto enabling timeout in /srv/www/domain.com/public_html/system/library/mail.php on line 153
2017-04-17 19:45:04 - PHP Warning:  fsockopen(): Failed to enable crypto in /srv/www/domain.com/public_html/system/library/mail.php on line 153
2017-04-17 19:45:04 - PHP Warning:  fsockopen(): unable to connect to ssl://smtp.zoho.com:465 (Unknown error) in /srv/www/domain.com/public_html/system/library/mail.php on line 153
2017-04-17 19:45:04 - PHP Notice:  Error:  (0) in /srv/www/domain.com/public_html/system/library/mail.php on line 156

I've increased the timeout but it hasn't changed anything. Any thoughts on what I can do to resolve this?