changed mailtype to html