make mailer work with resque