Try taking all the code you currently have inside the
CFMAIL tag, and putting it in a new cfm file that has
nothing in it except the processing code - then <CFINCLUDE>
this template into the mail.
I don't know if this will work for you, but I use this technique for
some of my mail functions...
- Dasher
----- Original Message -----
From: "Darren Daniel" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 9:34 AM
Subject: cfmail preformatting
> I have a problem formatting the contents within the body of cfmail.
> When I try and output data using cfif statements it sometime leaves line
> breaks in the outputted email.
> Heres the code:
>
> <cfif IsDefined ("form.email")>
> <cfmail to=#Form.email#
> from="me"
> subject="Your order is being processed">Dear #form.name#
>
> Thank you for ordering from Us.
> You ordered:
> <cfif IsDefined ("form.tshirt") AND form.tshirt IS "9_11wel"><cfif
IsDefined
> ("form.tshirt_amount") AND tshirt_amount IS NOT "0">#tshirt_amount#</cfif>
> 9-11 year old's Welsh tshirt(s)</cfif>
> <cfif IsDefined ("form.cap") AND form.cap IS NOT ""><cfif IsDefined
> ("form.cap_amount") AND form.cap_amount IS NOT "0">#cap_amount#</cfif>
> cap(s)</cfif>
> <cfif IsDefined ("form.mug") AND form.mug IS NOT "0">#mug# mug(s)</cfif>
> <cfif IsDefined ("form.pen") AND form.pen IS NOT "0">#pen# pen(s)</cfif>
> </cfmail>
> </cfif>
>
> So if someone selected just a cap and pen it would output for example:
>
> You ordered:
> 1 cap(s)
>
> 2 pens(s)
>
> There is a blank line between the two orders which I do not want. (I want
> the pen order to be on the next line)
> When I use type="html" and format it that way it works fine, but I need to
> send the email in plain text format.
> Any ideas please?
>
> TIA
>
>
> Darren Daniel
> Producer
> ------------------------------------------------------------------
> United Kingdom
> http://www.thoughtbubble.co.uk/
> Ph: +44 (0) 20 7387 8890
> ------------------------------------------------------------------
> New Zealand
> http://www.thoughtbubble.co.nz/
> Ph: +64 (0) 9 419 4235
>
> The information in this email and in any attachments is confidential and
> intended solely for the attention and use of the named addressee(s) . Any
> views or opinions presented are solely those of the author and do not
> necessarily represent those of Thoughtbubble. This information may be
> subject to legal, professional or other privilege and further distribution
> of it is strictly prohibited without our authority. If you are not the
> intended recipient, you are not authorised to disclose, copy, distribute,
or
> retain this message. Please notify us on +44 (0) 20 7387 8890
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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