Fix email template formatting