Has anyone figured out a way to prevent CFMAIL from behaving
like a set of CFOUTPUT tags when it's inside a CFOUTPUT
GROUP construct?
Consider this greatly simplified code:
<CFOUTPUT QUERY="MyQuery" GROUP="Email">
<CFOUTPUT>
some code here for building the content of the email
message...
</CFOUTPUT>
<CFMAIL>
my message
</CFMAIL>
</CFOUTPUT>
It seems that the CFMAIL behaves the same as the simple nested
CFOUTPUT, i.e., it iterates as an inner loop nested inside the
CFOUTPUT GROUP, resulting in multiple messages when I only
want it to send ONE.
I can't use the CFMAIL with a QUERY and GROUP parameter,
instead of the outer CFOUTPUT, because I need to build the email
message first with some processing within the inner CFOUTPUT.
Only workaround I've heard of is to build an array within the
CFOUTPUT, then iterate through that outside the CFOUTPUT. If
so, it seems like CFMAIL definitely needs a parameter to specify
whether it loops or simply does a simple send when inside a
CFOUTPUT GROUP....
Ideas?
Gene Kraybill
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists