fixes #12672, Better error handling for mailing message(don't use fatal)