altered the function 'create_html_output' so that it now returns a string containing html output ready to be put into an email. Created the function 'send_email' which emails the html output.