You forgot CHR(13) at the and of every line.
Gennadi
----- Original Message -----
From: "Kris Marwood" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 06, 2000 4:11 PM
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]