fixed mailer condition