html and sendmail function