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 -----Original Message----- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Saturday, January 27, 2007 4:24 PM To: CF-Talk Subject: RE: Line Breaks in Plain Text CFMail - GRRR! So how do I get rid of the extra lines where CFIF statements are bypassed in the code? The savecontent var that I'm building has about 35 cfif statements. -----Original Message----- From: Dave Phillips [mailto:[EMAIL PROTECTED] Sent: Saturday, January 27, 2007 5:15 PM To: CF-Talk Subject: RE: Line Breaks in Plain Text CFMail - GRRR! Remove your 'supresswhitespace' tag. That supresses carriage returns if I remember correctly. Dave -----Original Message----- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Saturday, January 27, 2007 4:10 PM To: CF-Talk Subject: Line Breaks in Plain Text CFMail - GRRR! I just cannot get this to work. Sending plain text email, want to force a line break. I've tried chr(10), chr(13), chr(13) & chr(10), with and without pound signs, restarted CFMX7. The arguments are outputting correctly. What's the trick to this? <cfset carr = chr(13) & chr(10)> <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> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:267877 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

