fix mailer bug for appointment alerts