Hmmm, Daniel brought up a good point:
"The whole 'carriage return/linefeed' problem is platform specific. On PCs
it's chr(13)&chr(10), on UNIX it's chr(10) and I think on MACs it's
chr(13)."
And for those of you that are curious as to what we were trying to do:
We were trying to format output for a plain text email:
Used this:
<cfscript>
confDetails = confDetails & DateFormat(codate) & ' - ' & coname & chr(10);
name = "";
if (Trim(getconf.spprefix) is not "")
{name = name & Trim(getconf.spprefix) & ' ';}
name = name & getconf.spfname & getconf.splname & ', ';
if (Trim(getconf.spsuffix) is not "")
{name = name & Trim(getconf.spsuffix) & ', ';}
if (Trim(getconf.sptitle) is not "")
{name = name & Trim(getconf.sptitle) & ', ';}
if (Trim(getconf.spdept) is not "")
{name = name & Trim(getconf.spdept) & ', ';}
if (Trim(getconf.spcompany) is not "")
{name = name & Trim(getconf.spcompany);}
confDetails = confDetails & name & chr(10);
if (getconf.codescr is not "")
{confDetails = confDetails & codescr & chr(10);}
confDetails = confDetails & cotime;
if (getconf.cospecial is not "")
{confDetails = confDetails & ' - ' & cospecial;}
confDetails = confDetails & chr(13) & chr(10); <-----changed the order!
Thanks guys!
</cfscript>
and called variable inside the <CFMAIL> tag....
But now I'm curious as to whether or not this makes a difference if the user
receives the email on a Mac or Unix....
Erika
"Age is in the mind of the beholder." - Unknown
-----Original Message-----
From: Howie Hamlin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:16 AM
To: CF-Community
Subject: Re: Quick question...SOLUTION
----- Original Message -----
From: "Erika L Walker" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 11:08 AM
Subject: RE: Quick question...SOLUTION
> 1) I'm now confused. You're saying the second one, the carriage return,
> that's not the ascii code? Because that's what I got off of
> www.asciitable.com ?? Just trying to get my terminology straight here.
>
What I mean is that there is an ascii code for a linefeed (10 in decimal or
0A in hex) and one for a carriage return (13 in decimal or 0D in hex) but
there is no such ascii code for a soft linebreak. A soft linebreak is when
a rendering program (a web browser, for example) put text that is too long
to fit on one line onto another line (there is no line break in the text,
iow). Ascii codes date way back to the teletype days when there was a real
difference between a linefeed and a carriage return...
> 2) Does it matter? The order I mean, because it worked for what I was
> doing....but I'll fix if it makes a difference.
>
Yes, it does matter. The standard is a carriage return followed by a
linefeed and not the other way around.
HTH,
Howie
> Always willing to make sure my code is in proper order!
>
> Erika
>
> "Age is in the mind of the beholder." - Unknown
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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