There is no SMTP server running on the dev machine and I don't want one right now.... but how do I suppress the 'Failed to connect to mailserver...' error that is returned when I attempt to use the mail() function?
The code works fine in test and live where there is a mail server, but how do I suppress the error if the mail() function can't find the mailserver?
I've tried if(mail('','','')){}
also
return (mail()); // from a function
but they don't help.
How do I get the function to simply return False if it fails?
Using an fsockopen() test prior to trying mail() does work but is too slow.