Cheers guys.... chr(13) & chr(10) works a treat :o)
Kris
----- Original Message -----
From: "Peter Alexandrou" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 06, 2000 1:21 PM
Subject: RE: newline in cfmail
Try Chr(13) & Chr(10).
> -----Original Message-----
> From: Kris Marwood [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 6 November 2000 16:12
> To: CF-Talk
> Subject: newline in cfmail
>
>
> I'm creating an app that sends users a plaintext email using
> <cfmail>. The
> content is dynamically generated by the following code:
>
> <cfloop index="count" from="1" to="#theNumberOfStories#">
> <cfset ptHeaders = ptHeaders & "- " &
> evaluate("attributes.header" & count)
> & chr(13)>
> </cfloop>
>
> This code generates the following output in the html source:
>
> - formfield1Content
> - formfield2Content
> - formfieldnContent
>
> However, when I send it as a plaintext email using <cfmail>
> (and read it in
> Outloox Express) the formatting is messed up - everything is
> put on one
> line - ie:
>
> - formfield1Content- formfield2Content- formfieldnContent
>
> It appears chr(13) doesn't work for plaintext emails. What
> can be used to
> format the email like this (given the dynamically generated
> nature of the
> content of the email)
>
> Any suggestions are much appreciated.
>
> Thanks in advance,
>
> Kris Marwood
> [EMAIL PROTECTED]
>
> --------------------------------------------------------------
> ----------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with
'unsubscribe' in the body to [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]