In the 3 series of Swift Mailer, I recall there being a way to catch transport connection failures very easily. However, with 4(.0.3) a typo in the hostname when connecting (using SMTP transport here), for example, will result in PHP warnings, such as:
Is there a 'nice' way to handle these errors (such as catching an exception like before), so I don't in fact get them at all? This is for an application that will have its configuration adjusted by users (admins) and if they make a typo, having PHP warnings fill their logs/browser isn't too good.Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known
Regards,