better error message for mail deliver