Yes it does return an error in 4.01, I have nightmares with it because we
run both 4.01 and 4.5

I find the simplest way to do it either to remember to remove the
cfprocessingdirective or use an if statement with the variable
Server.ColdFusion.ProductVersion checking for 4, 5 and if it finds it
including the cfprocdir tag....

Interesting to see how some of the gurus attempted to solve the
problem.......

> -----Original Message-----
> From: Bud [mailto:[EMAIL PROTECTED]]
> Sent: 4 January 2001 11:26 PM
> To: CF-Talk
> Subject: RE: line breaks in cfmail
>
>
> On 1/4/01, Edward Chanter penned:
> >I'm assuming this is happening ins CF 4.5?
> >
> >If so, to fix it use the following code:
> >
> ><cfprocessingdirective suppresswhitespace="no">
> ><cfmail>
> >Email Address: #form.email#
> >Business Name: #form.businessname#
> ></cfmail>
> ></cfprocessingdirective>
> >
> >HtH
>
> Cool. Is that going to return an error in 4.01? I have a situation
> where I've had to code a mail response that contains a cfoutput like
> this for 4.51:
>
> Email Address: #form.email##chr(10)#Business Name: #form.businessname#
>
> It's a long cfmail block. I just do a find on all the line breaks and
> replace with #chr(10)#, putting everything on one line. Then I
> reverse the process if I need to edit it, edit it, then put it back
> on one line.
> --
>
> Bud Schneehagen - Tropical Web Creations
>
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> ColdFusion Solutions / eCommerce Development
> [EMAIL PROTECTED]
> http://www.twcreations.com/
> 954.721.3452
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to