Added pdftohtml and email with attachments working