add sendHtml and sendEmailWithAttachment