DC21-588: Fix mailer and add env to resque task