Class for generating the emails

Just started it and obviously it isn't finished lol.