Yeah, that's the sort of creative thinking I was looking for. That
would be a great hidden feature of built-in tags if it works... I'll
let you know.

Thanks,
Jamie

On Fri, 4 Jun 2004 09:17:53 -0700, in cf-talk you wrote:

>Have you tried passing attributeCollection to the CFMAIL tag, just like you
>would to a custom tag or CFMODULE call?  I have no idea if it'd actually
>work, but it's worth a shot, as it would provided exactly the functionality
>you're looking for.
>
>Cheers,
>barneyb
>
>> -----Original Message-----
>> From: Jamie Jackson [mailto:[EMAIL PROTECTED]
>> Sent: Friday, June 04, 2004 8:10 AM
>> To: CF-Talk
>> Subject: Dynamically writing/running a CF tag?
>>
>> In CF5, I've written a wrapper for the <cfmail> tag so that it does
>> multipart emails (HTML + Text + attachments, etc.). Right now, I
>> construct the final <cfmail> tag as a variable, then I write that
>> variable (the cfmail tag) to a file, then include it, then delete it.
>> This is inefficient, but it is to get around the fact that you can't
>> do things like this:
>>
>> <!--- can't conditionally include attributes --->
>> <cfmail from="#attributes.from#" to="#attributes.to#"
>>  <cfif
>>   isdefined("attributes.server")>server="#attributes.server#"</cfif>
>>  <cfif
>>   isdefined("attributes.port")>port="#attributes.port#"</cfif>
>>  <cfif
>>   isdefined("attributes.query")>query="#attributes.query#"</cfif>
>> />
>>
>> Is there some way around the file write/include/delete method? ...Any
>> ideas at all?
>>
>> Thanks,
>> Jamie
>>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to