add doctype and add text emails