Added run mailer function