This is a proof-of-concept in using ColdFusion custom tags to create a DSL (Domain Specific Language) for generating email content. I've worked on a lot of emails in my life; and, they are very challenging, usually using a complex set of build-tools that inline CSS. I wanted to try something else - something less "magical" - that would be more brute-force and more predictable.
-
Outlook on Windows will clip images if they are contained within a parent that has an explicit
line-height
. To get around this, the several of the HTML entities support the class,html-entity-line-height-reset
. This will "unset" theline-height
and apply anat-least
value for Outlook clients. -
Outlook on Windows will not render
<pre>
content that usesencodeForHtml()
. As such, you should stick to usinghtmlEditFormat()
inside<pre>
tags.
There are a number of syntax and feature considerations in this code that are not compatible with Adobe ColdFusion (ACF). As such, I created a different repository that includes tweaks to the syntax and logic that work for ACF 2018: