Re: Line Breaks in Plain Text CFMail - GRRR!
Try this: cfif Len(ARGUMENTS.rsvpUserBadgeName)Attendee Name Badge: #ARGUMENTS.rsvpUserBadgeName##carr# /cfifcfif Len(ARGUMENTS.rsvpGuest01Name)Guest Name: #ARGUMENTS.rsvpGuest01Name##carr# /cfifcfif Len(ARGUMENTS.rsvpGuest01BadgeName)Guest Name Badge: #ARGUMENTS.rsvpGuest01BadgeName#/cfif It keeps the extra line breaks within the cfifs, while still maintaining readable code. 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 ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270583 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Line Breaks in Plain Text CFMail - GRRR!
Yes, this does work correctly in plain text email. Thanks to everyone's help with this. Mark === cfset crlf = chr(13) chr(10) cfset VARIABLES.formFieldsCopy = cfif Len(ARGUMENTS.rsvpUserBadgeName) cfset VARIABLES.formFieldsCopy = VARIABLES.formFieldsCopy Attendee Name Badge: ARGUMENTS.rsvpUserBadgeName crlf /cfif cfif Len(ARGUMENTS.rsvpGuest01Name) cfset VARIABLES.formFieldsCopy = VARIABLES.formFieldsCopy Guest Name: ARGUMENTS.rsvpGuest01Name crlf /cfif cfif Len(ARGUMENTS.rsvpGuest01BadgeName) cfset VARIABLES.formFieldsCopy = VARIABLES.formFieldsCopy Guest Name Badge: ARGUMENTS.rsvpGuest01BadgeName crlf /cfif If you still have the problem, try another e-mail client. Outlook has the nasty habit of removing line breaks it thinks are unnecessary. Jochem ~| 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:269991 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Line Breaks in Plain Text CFMail - GRRR!
Sorry to hop in on this one after a while, but I've an idea for you. Instead of doing all your cfifs etc within the cfmail tag - do it all prior to the cfmail tag, and build up your content within a variable, just the way you want to. That'll avoid any extra linefeeds etc. Then just spit out that variable in the cfmail tag, within the cfmailpart type=text/cfmailpart bits if that's the route you're going. ~| 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:267964 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Line Breaks in Plain Text CFMail - GRRR!
Instead of doing all your cfifs etc within the cfmail tag - do it all prior to the cfmail tag, and build up your content within a variable, just the way you want to. That'll avoid any extra linefeeds etc. Then just spit out that variable in the cfmail tag, within the cfmailpart type=text/cfmailpart bits if that's the route you're going. Both you and Jochem have a good idea, which I will test later tommorow. It must be that cfsavecontent that chokes on chr(). Got hammered on other issues, so I couldn't respond right away. Mark ~| 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:268028 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Line Breaks in Plain Text CFMail - GRRR!
pre Your Code Should Look Like This /pre On 1/29/07, Mark Leder [EMAIL PROTECTED] wrote: Instead of doing all your cfifs etc within the cfmail tag - do it all prior to the cfmail tag, and build up your content within a variable, just the way you want to. That'll avoid any extra linefeeds etc. Then just spit out that variable in the cfmail tag, within the cfmailpart type=text/cfmailpart bits if that's the route you're going. Both you and Jochem have a good idea, which I will test later tommorow. It must be that cfsavecontent that chokes on chr(). Got hammered on other issues, so I couldn't respond right away. Mark ~| 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:268030 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Line Breaks in Plain Text CFMail - GRRR!
Mark Leder wrote: 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 crlf = chr(13) chr(10) cfset VARIABLES.formFieldsCopy = cfif Len(ARGUMENTS.rsvpUserBadgeName) cfset VARIABLES.formFieldsCopy = VARIABLES.formFieldsCopy Attendee Name Badge: ARGUMENTS.rsvpUserBadgeName crlf /cfif cfif Len(ARGUMENTS.rsvpGuest01Name) cfset VARIABLES.formFieldsCopy = VARIABLES.formFieldsCopy Guest Name: ARGUMENTS.rsvpGuest01Name crlf /cfif cfif Len(ARGUMENTS.rsvpGuest01BadgeName) cfset VARIABLES.formFieldsCopy = VARIABLES.formFieldsCopy Guest Name Badge: ARGUMENTS.rsvpGuest01BadgeName crlf /cfif If you still have the problem, try another e-mail client. Outlook has the nasty habit of removing line breaks it thinks are unnecessary. Jochem ~| 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:267891 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
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:267863 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
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:267864 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Line Breaks in Plain Text CFMail - GRRR!
Are you viewing this in an email or outputting it to a web template? savecontent should generate the line feeds for you and save the content the way it was originally. If you are outputting to a template then you need to wrap whatever in a pre tag. Doug B. - Original Message - From: Mark Leder [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Saturday, January 27, 2007 3:10 PM 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:267865 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Line Breaks in Plain Text CFMail - GRRR!
Viewing in MS Outlook as an email message. -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Saturday, January 27, 2007 5:24 PM To: CF-Talk Subject: Re: Line Breaks in Plain Text CFMail - GRRR! Are you viewing this in an email or outputting it to a web template? savecontent should generate the line feeds for you and save the content the way it was originally. If you are outputting to a template then you need to wrap whatever in a pre tag. Doug B. - Original Message - From: Mark Leder [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Saturday, January 27, 2007 3:10 PM 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:267866 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Line Breaks in Plain Text CFMail - GRRR!
Well, you could do a little hack... cfoutput Attendee Name Badge:cfif Len(ARGUMENTS.rsvpUserBadgeName) #ARGUMENTS.rsvpUserBadgeName##carr#cfelseN/A/cfif Guest Name:cfif Len(ARGUMENTS.rsvpGuest01Name) #ARGUMENTS.rsvpGuest01Name##carr#cfelseN/A/cfif Guest Name Badge:cfif Len(ARGUMENTS.rsvpGuest01BadgeName) #ARGUMENTS.rsvpGuest01BadgeName#cfelseN/A/cfif /cfoutput Doug B. - Original Message - From: Mark Leder [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Saturday, January 27, 2007 3:26 PM Subject: RE: Line Breaks in Plain Text CFMail - GRRR! Viewing in MS Outlook as an email message. -Original Message- From: Doug Brown [mailto:[EMAIL PROTECTED] Sent: Saturday, January 27, 2007 5:24 PM To: CF-Talk Subject: Re: Line Breaks in Plain Text CFMail - GRRR! Are you viewing this in an email or outputting it to a web template? savecontent should generate the line feeds for you and save the content the way it was originally. If you are outputting to a template then you need to wrap whatever in a pre tag. Doug B. - Original Message - From: Mark Leder [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Saturday, January 27, 2007 3:10 PM 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:267867 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
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 wisesohere'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:267868 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
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 wisesohere'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:267869 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
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 wisesohere'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
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 wisesohere'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:267883 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Line Breaks in Plain Text CFMail - GRRR!
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 wisesohere'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