Fixing the line break problem, tried your code a number of ways.  Moved the
cfprocessingdirective inside the cfsavecontent, outside the cfsavecontent.
Made sure the replace function was after the closing cfprocessingdirective
and cfsavecontent tags. The uuid is placed correctly and shows up, but the
replace won't insert the cr lf. FWIW, I'm running this code inside a cfc. 

-----Original Message-----
From: Dave Phillips [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 27, 2007 8:24 PM
To: CF-Talk
Subject: RE: Line Breaks in Plain Text CFMail - GRRR!

What didn't work?

-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 27, 2007 6:10 PM
To: CF-Talk
Subject: RE: Line Breaks in Plain Text CFMail - GRRR!


Didn't work. 

-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 27, 2007 6:03 PM
To: CF-Talk
Subject: RE: Line Breaks in Plain Text CFMail - GRRR!

Good call, I've been thinking along this line.  Let me test out and I'll let
you know. 

-----Original Message-----
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 27, 2007 5:55 PM
To: CF-Talk
Subject: RE: Line Breaks in Plain Text CFMail - GRRR!

Well, one option would be to put them all on one line. :)  But that would be
a nightmare to support coding wise....so....here's another hack you could do
without modifying how your e-mail will look in Outlook:

<cfset carr = createUUID()> <!--- (supply a unique character string here,
just using createUUID() to simplify) --->
 
<cfprocessingdirective suppresswhitespace="yes"> <cfsavecontent
variable="VARIABLES.formFieldsCopy">
<cfoutput>
<cfif Len(ARGUMENTS.rsvpUserBadgeName)>Attendee Name Badge:
#ARGUMENTS.rsvpUserBadgeName##carr#</cfif>
<cfif Len(ARGUMENTS.rsvpGuest01Name)>Guest Name:
#ARGUMENTS.rsvpGuest01Name##carr#</cfif>
<cfif Len(ARGUMENTS.rsvpGuest01BadgeName)>Guest Name Badge:
#ARGUMENTS.rsvpGuest01BadgeName#</cfif>
</cfoutput>
</cfsavecontent>
</cfprocessingdirective>
<cfset variables.formFieldsCopy =
replace(variables.formFieldsCopy,carr,chr(13)&chr(10),"all")>

Let me know if that works.

Dave





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267884
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to