add doctype and add text emails

tested most emails in browser. fixes #519