I have a problem with mail, sometimes I get this error:
Code: Select all
2021-01-11 14:45:40 - PHP Warning: fsockopen (): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/******/public_html/system/library/mail/smtp.php on line 87
2021-01-11 14:45:40 - PHP Warning: fsockopen (): unable to connect to smtp. *******. Com: 587 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in / home /pcrobots/public_html/system/library/mail/smtp.php on line 87
an error appears on the web and this in the log.
The error is displayed randomly and max 1-2 times a day, otherwise, everything works normally and emails normally work with the current settings, only occasionally this error is displayed, for example 40 emails in a row will be sent without error.
Anyone have any idea how to debug it?