Revamped how emails are sent

Created a templating engine