Wellk you're not actually using the crlf variable, but you really
don't need it in this case... just outputting your content in
cfsavecontent will generate the line feeds for you... How are you
viewing the content to know if the line feeds are there? In an email
client or are you outputting them to the page? If you're outputting
them to the page, remember that you need to wrap them in <pre> tags
(or other preformatted element like a textarea) to see how they will
appear in a text email (or the text portion of a multipart email),
i.e.: <pre>#htmleditformat(variables.siteownermessage)#</pre> This is
the only way to see _exactly_ what the variable contains when
displaying to a browser.

As an asside, if you need to create a crlf variable, this will work:

<cfset crlf = chr(13) & chr(10)>

No need for all that extra work ...

hth

> Hi all,

> I can't seem to get this CR/LF call to work inside
> <cfsavecontent> (this is
> used for a plain text cfmail).  It doesn't force the line
> break.  What am I
> doing wrong?

> <cfscript>
> REQUEST.crlf = (#chr(13)# & #chr(10)#); // carriage return
> line feed
> </cfscript>

> <cfsavecontent
> variable="VARIABLES.SiteOwnerMessage"><cfoutput>This
> information was created on the Web Site Gift Request Form
> Page.

> Email Address: #Trim(ARGUMENTS.emailAddress)#

> #Trim(ARGUMENTS.firstname)##REQUEST.space##Trim(ARGUMENTS.
> lastname)#
> Trim(ARGUMENTS.company)#
> #Trim(ARGUMENTS.address1)#<cfif Len(ARGUMENTS.address1)
> AND
> Len(ARGUMENTS.address2)>#REQUEST.crlf##Trim(ARGUMENTS.addr
> ess2)#</cfif>
> #Trim(ARGUMENTS.city)#, #Trim(ARGUMENTS.state)#
> #Trim(ARGUMENTS.zipCode)#
> </cfoutput>
> -----------------------------------------------
> END OF MESSAGE</cfsavecontent>

> Thanks,
> Mark


s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218834
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to