Hi All,
I'm looking for some kind of best practice when using the CFMAIL tag in
terms of selectively controlling whitespace. If you look at the example
below, my problem is the that the <CFIF> statements create an empty row even
if they are not called - so if only one CFIF statement EQ Yes, I will still
have several rows of white space. I've also found that the <CFMAILPARAM>
tag used after the beginning <CFMAIL> statement also creates a blank line at
the top of the mail message. In addition, I would like my Phone, Email, and
Web rows (at the bottom) to line up nicely.
CFPROCESSINGDIRECTIVE as shown below has no effect on the output. What's
the best solution others have used? <CFSILENT> ? <CFSETTING
ENABLECFOUTPUTONLY> ?
Thanks,
Mark
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<cfset CRLF = chr(13)& chr(10)>
<!--- Mail which goes to the user who filled out the form --->
<CFMAIL TO="#FORM.emailadr#"
FROM=#fromemail#
SUBJECT="Correspondance Confirmation"
BCC=#bcc#>
Thank you for visiting #companyname# on the web.
<cfprocessingdirective suppresswhitespace="yes">
<CFIF FORM.Message IS NOT "">For your reference, since you provided inquiry
comments, they are listed here:#CRLF#
<CFIF FORM.lymph IS "Yes">I'm interested in learning more about your
Lymph Drainage Therapy.</CFIF>
<CFIF FORM.aroma IS "Yes">I'm interested in learning more about
Aroma Therapy.</CFIF>
<CFIF FORM.craniosacral IS "Yes">I'm interested in learning more
about your CranioSacral Therapy.</CFIF>
<CFIF FORM.farinfrared IS "Yes">I'm interested in learning more
about your Far Infrared Sauna Therapy.</CFIF>
<CFIF FORM.intensive IS "Yes">I'm interested in learning more about
your Intensive Treatment Therapy.</CFIF>
<CFIF FORM.bodytalk IS "Yes">I'm interested in learning more about
your Body Talk System.</CFIF>
<CFIF FORM.privacy IS "Yes">I have a question about the privacy on
this site.</CFIF>
<CFIF FORM.course IS "Yes">I'm interested in signing up for the
following course when it is announced:
#Trim(FORM.activity)#</CFIF>
<CFIF FORM.signup IS "Yes">I'm signing up for the following free
course:#CRLF#
Course Title: #Trim(qCalendarTBA.activityTitle)##CRLF#
Course Date: #DateFormat(qCalendarTBA.cal_date_start, "DDDD, MMMM
DD, YYYY")##CRLF#
Course Time: #Trim(qCalendarTBA.activity_Time)##CRLF#
Course Instructor: #Trim(qCalendarTBA.instructorName)##CRLF#
Course Location: #Trim(qCalendarTBA.locationname)##CRLF#
Course Address: #Trim(qCalendarTBA.address)##CRLF#
Course City, State, Zip: #Trim(qCalendarTBA.city)#,
#Trim(qCalendarTBA.state)# #Trim(qCalendarTBA.zip)#</CFIF>
#Trim(FORM.Message)#</CFIF>
</cfprocessingdirective>
We will follow up shortly regarding your e-mail message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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