Class loading emails

Allow the definition of a class to be the loaded one to issue the emails instead of the default ones.