From 08bf2aa91eef60e40a3e39fdcba2950fee706b3e Mon Sep 17 00:00:00 2001 From: Nicolaas Date: Tue, 16 Apr 2013 15:19:52 +1200 Subject: [PATCH] removing potentially invalid html in email The generic email template encapsulates the "body" content in a paragraph mark. This is undesirable as it can lead to invalid HTML. Rather than using a paragraph, it is better to have a div encapsulating the content. The underlying reason for this is that $Body is usually HTML and this can included block elements (div, p, etc...) that are not allowed within paragraphs (p). It is important that the HTML is valid, because it will reduce the likelihood for it being marked as spam, because it is less likely to show up strange formatting and for use of tools like emogrifier. --- templates/email/GenericEmail.ss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/email/GenericEmail.ss b/templates/email/GenericEmail.ss index 2da3240be..7f23eda00 100644 --- a/templates/email/GenericEmail.ss +++ b/templates/email/GenericEmail.ss @@ -5,9 +5,9 @@ -

+

$Body -

+
- \ No newline at end of file +