Formatted email template.
Made emailing work.