I have the following code at the top of a php error page:
<?php
$message = "Your website has generated a 503 error";
mail('myaddress@mydomain.com', 'ALERT - 503 Error', $message);
?>
Obviously the email address above is substituted with my actual email on the live site.
When I load the page, no email is sent. Any ideas? Thanks.