use template for txt and html mails to send notification mails