Halfway done with email function.
Finished Email Function