Mail error 500 notifications working