Skip to main content
Inspiring
April 12, 2008
Question

Can anyone explain?

  • April 12, 2008
  • 1 reply
  • 234 views
I'm send a email via CF when a request for info comes in. The code that
displays the info is:

Visitors information is:<br>
#CapFirstTitle(strName)#
#CapFirstTitle(form.Address1)#<cfif len(form.Address2) gt 2>,
#CapFirstTitle(new_Address2)#</cfif>
#CapFirstTitle(form.City)#, #ucase(form.State)# #form.Zip#

Requested info:<br>
Request fencing info: #yesnoformat(form.Info)#
Fencing tournament alert: #yesnoformat(form.Events)#
Fencing class info: #yesnoformat(form.Class)#
Subscribing to newsletter: #yesnoformat(form.News)#

But the email shows up like:
Visitors information is:

Steve Grosz P.o. Box 7285 Boise, OR 83755-1125

Requested info:

Request fencing info: Yes
Fencing tournament alert: No
Fencing class info: No
Subscribing to newsletter: No

Why is all the customer info on 1 line, but the requested info is on
seperate lines, when no <br>'s are used????

    This topic has been closed for replies.

    1 reply

    April 13, 2008
    Hi, I take it you figured this out already, but in case someone else is helped by it, I suppose you need to make sure you have set the type of the cfmail tag to html (as you are using one <br> tag in your mail body, I assume you are using html), and then I'd probably just have a <br> for good measure after each variable. In any case, quite easy to experiment until it looks right ;-)