added resque handling for mailer