Fix HTML Emails

Prior to this the html part would simply be attached to the text outputting nothing useful.