Это ошибка, которую SMTP дает мне:
2019-01-20 07:25:57 Connection: opening to mail.example.com:25, timeout=300, options=array()
2019-01-20 07:25:57 Connection failed. Error #2: stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known [/home/albertyno/NetBeansProjects/PhpMail/vendor/phpmailer/phpmailer/src/SMTP.php line 326]
2019-01-20 07:25:57 Connection failed. Error #2: stream_socket_client(): unable to connect to mail.example.com:25 (php_network_getaddresses: getaddrinfo failed: Name or service not known) [/home/albertyno/NetBeansProjects/PhpMail/vendor/phpmailer/phpmailer/src/SMTP.php line 326]
2019-01-20 07:25:57 SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
2019-01-20 07:25:57 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting.
Можете ли вы ее решить или нет?
Ответ является "dtrace", но он не будет работать над достаточно старыми макинтошами.
http://tech.marshallfamily.com.au/archives/python-dtrace-on-os-x-leopard-part-1/
http://tech.marshallfamily.com.au/archives/python-dtrace-on-os-x-leopard-part-2/