Hmm, setting it rather than using cfsavecontent, interesting - I'll give
that one a whirl as well.
Thanks for responding.  I wonder if I will still have trouble with the CFIF
whitespacing (see other post).
Mark

-----Original Message-----
From: Ewok [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 19, 2003 10:41 PM
To: CF-Talk
Subject: Re: CFMail Controlling Whitespace (was Best Practice) ARRGH!


I just wrote this and realized its a 3 day old post but IM HITTING SEND
ANYWAY!!! heh

Usually setting the body content of my mail message to a variable then
calling it in the cfmail tags works well. If I use the exact same formatting
between the tags that I use when setting the a variable...it doesn't look
the same at all.... Seems that I remember it being much easier to format a
cfmail message in CF 4.5.2..... or was that a dream??

here' s one i used recently, it made it through rather nicley...ofcourse
there was some form validation and some input filtering before it but here
it is.....hope it helps


<cfset msgtext = "
#Form.Email#

#Trim(Form.Fname)# #Trim(Form.Lname)#
#Trim(Form.address)#
#Trim(form.address2)#
#Trim(form.city)#, #Trim(form.state)#
#Trim(form.zip)#

#Trim(form.phone)#

REFERRAL: #form.referral#

SUBJECT: #subject#

USER'S MESAGE:

#Trim(Form.Message)#">

<cfmail to="#to#" from="" subject="#inquiry#">


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to