What I like to do is use chr(10) and format the entire email as in one string. Then just output the string inside the cfmail tags. This way you get total control of the output and your cf tags/logic do not add to the white space in the text you are trying to email.

Justin Hansen
Project Manager
Uhlig Communications

[EMAIL PROTECTED]

-----Original Message-----
From: MILAN MUSHRAN [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 8:38 AM
To: CF-Talk
Subject: Re:cfmail pre-formatting

Use ASCII code #Chr(13)# & #Chr(10)# (which is equivalent to <BR>).Use
#Chr(13)# & #Chr(10)# for a new line in text email and use <BR> (as you
already have) for HTML emails.

>From: cf coder <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: Re:cfmail pre-formatting
>Date: Fri, 05 Dec 2003 09:26:33 -0400
>
>so what are you saying?
>
>This code is fine for HTML supported email servers, but not when it is text
> >supported only.
> >
> >
> >>From: cf coder <[EMAIL PROTECTED]>
> >>Reply-To: [EMAIL PROTECTED]
> >>To: CF-Talk <[EMAIL PROTECTED]>
> >>Subject: Re:cfmail pre-formatting
> >>Date: Fri, 05 Dec 2003 09:05:53 -0400
> >>
> >>thank you all for your suggestions. This code does the job.
> >>
> >><cfmail to="[EMAIL PROTECTED]"
> >>         from="#frommail#"
> >>         subject="Order"
> >>         server="someserver"
> >>         port="25"
> >>         type="HTML">
> >>
> >>Any Comments=#AnyComments# <br>
> >><cfif shoppingBasket neq 0>Shopping Basket=#shoppingBasket# <br></cfif>
> >><cfif username neq 0>User Name=#username#<br></cfif>
> >>
> >></cfmail>
> >>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to