Skip to main content
Participating Frequently
April 26, 2006
Answered

cfmail and text area question

  • April 26, 2006
  • 2 replies
  • 409 views
I have a form that we use to enter the body text of an email into a text form very much like the form I am using to create this new post. What I can't figure out is how to keep the carriage returns in place when the text area content is sent using cfmail in the html part of the cfmail message? We've been manually adding break tags, but that's a pain.

I have tried adding wrap="hard" to the text area and also using <cfprocessingdirective suppresswhitespace="no"> around the cfmail tags, but the content of the text area shows up in the emails as one big paragraph.

Anyone know how to do this? Thanks
    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer Dan_Bracuk
    Replace Chr(10)Chr(13) with <br>

    2 replies

    megalithAuthor
    Participating Frequently
    April 26, 2006
    Thanks Dan, that did the trick.
    Dan_BracukCorrect answer
    Inspiring
    April 26, 2006
    Replace Chr(10)Chr(13) with <br>