Skip to content

This is a POC of using ColdFusion custom tags to layout emails.

Notifications You must be signed in to change notification settings

bennadel/ColdFusion-Custom-Tag-Emails

Repository files navigation

Email DSL Using ColdFusion Custom Tags

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.

Special Considerations

  • 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" the line-height and apply an at-least value for Outlook clients.

  • Outlook on Windows will not render <pre> content that uses encodeForHtml(). As such, you should stick to using htmlEditFormat() inside <pre> tags.

Adobe ColdFusion 2018 Compatibility

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:

View Adobe ColdFusion 2018 version

About

This is a POC of using ColdFusion custom tags to layout emails.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages