better management of errors in mailing services