Fix a variable usage issue in mailing