Added mail delivery code

Tested using terminal to view the output and seemed to be sending the
html