add status check for mailer