Improve the mail sending function, change format from plain text to
html.