Michael, your code is correct.  It is the user's default email program that
should interpret the chars and format they accordingly...

your code produces this in outlook, being sent to an the blah.cfm email:
----------------------------------------
This is a test.
I like testing
things.

This is the beginning of a
paragraph.
----------------------------------------


        Terry Bader
        IT/Web Specialist
        EDO Corp - Combat Systems
        (757) 424-1004 ext 361 - Work
        [EMAIL PROTECTED]   


        (757)581-5981 - Mobile
        [EMAIL PROTECTED]
        icq: 5202487   aim: lv2bounce
        http://www.cs.odu.edu/~bader






-----Original Message-----
From: Caulfield, Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 2:06 PM
To: CF-Talk
Subject: RE: 'mailto' content


While 'mailto:' is a psuedo-href, it's still an HTML attribute, and as such
it will ignore your return characters. Meaning

<a href="linkch
eck.cfm?line1=1&
line2=2">link</a>

is equivalent to

<a href="linkcheck.cfm?line1=1&line2=2">link</a>

I don't think there is any way around this.

Michael Caulfield
Cognitive Arts
(847) 425-8529

-----Original Message-----
From: Trace Faber [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 11:37 AM
To: CF-Talk
Subject: 'mailto' content


Hi Guys,

I'm trying to include body text in a <a href="mailto:....."> tag. Now I get
the body text in there but I am having trouble formatting it. For example
line breaks. I am probably going about this completely wrong, but below is
my code.


<cfset emailContent = "This is a test."&chr(13)&chr(10)&"I like testing
things."&chr(13)&chr(10)&chr(13)&chr(10)&"This is the beginning of a
paragraph.">

<cfset emailContent = URLEncodedFormat(emailContent)>

<cfoutput>
<a href="mailto:blah.cfm?subject=Test&body=#emailContent#">Test</a>
</cfoutput>


Any tips would be greatly appreciated.

Trace
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to