Moving my emailer to a class