CHANGED : write_and_send_email()
this will now use the plaintext and html message and send using the new template
the html is going to look ugly, so test, test, test