Report question

Question: How can I catch an error caused by mail()?