Created a singleton email class

#280