When I call the PHP mail function on my testing server I receive a warning. This is correct because I have no mail server enabled to test the system when mall fails. I want this function not to throw the warning though. How will I achieve this?
The function itself should still fail though (i.e. return false).