Added email support for errors