silverstripe-framework/templates/email
Nicolaas 08bf2aa91e 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.
2013-04-16 10:38:08 +02:00
..
ChangePasswordEmail.ss BUG Fully qualified namespace for _t() in templates 2012-08-06 13:44:21 +02:00
ForgotPasswordEmail.ss BUG Fully qualified namespace for _t() in templates 2012-08-06 13:44:21 +02:00
GenericEmail.ss removing potentially invalid html in email 2013-04-16 10:38:08 +02:00