Added resque functionality to mailer class