continued email support implementation

added emails for success/fail.
created email templates
created utility functions