Changed email to use template