Update emailing class