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