Skip to main content
November 30, 2011
Question

Display normal text inside a cfmail type="html"

  • November 30, 2011
  • 1 reply
  • 753 views

I am using cfmail to send an email that contains an included css and plenty of html.  It works great.  However, there is a snippet of code inside the cfmail like I want to treat like normal text so the person can see the actual code without it being interpreted/translated by the cfmail.


How do I do that?

    This topic has been closed for replies.

    1 reply

    Sean Coyne
    Participating Frequently
    November 30, 2011

    The same way you would do it on a webpage.  You have to escape the HTML.  You can use HTMLEditFormat for this.  Documentation is here: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7847.html