So in the CF Code, you don't escape the < and >'s.

So:

<cfset the_from = the_from & ","  & fname & " " & lname & "<" & email & ">">

will get you the string to use in your CFMAIL tag,

then when you're displaying it via cfoutput, use:

#htmlCodeFormat(the_from)#

or, to escape the characters, but don't surround with PREs

#htmlEditFormat(the_from)#

T

On 15 June 2010 15:07, daniel kessler <[email protected]> wrote:

>
> >Problem's not the concatenation, it's just the browser interprets anything
> >between < and > as tags, so they're hidden by design.
> >
> >
> >Once you have your list, try this:
> >
> >
> ><cfoutput>#htmlCodeFormat(the_from)#</cfoutput>
>
> I tried this and the email message failed anyway.  It looked great when I
> did the output to a web page, but on checking the source, it instead had:
> <PRE>Daniel Kessler&lt;[email protected] <kessler%26lt%[email protected]>
> &gt;</PRE>
>
> Clearly, I want the actual characters instead of the <PRE> and &lt;
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334573
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to