I am trying to send out cfmail notification with query results in the mail....but get the following error:
Invalid tag nesting configuration
A query driven CFOUTPUT tag is nested inside a CFMAIL tag that also has a QUERY= attribute. This is not allowed. Nesting these tags implies that you want to use grouped processing. However, only the top-level tag can specify the query that drives the processing.
Scenario: Purchase order system....the user is getting email notifying that their manager has approved their order and I want to list just the items they ordered. If I have the cfmail query based on this query, it will produce how ever many emails as items....which wouldn't be appreciated!
Here's a snippet of the code:
<cfmail to="#getOrderInfo.RequestedByEmail#" from="#ManagerEmail#" subject="Purchase Order Request - Approved" server="xxxx.xxx.xxx.xxx" port=25 type="HTML">
#attributes.ManagerName# has approved your Purchase Order <cfif POType is "LV">(#PONum#) </cfif>as of #today#.
<p>
It included the following items<p></p>
<cfoutput query="yourOrder">#description#<br> </cfoutput><p></p>
Any suggestions?
Stephanie
Invalid tag nesting configuration
A query driven CFOUTPUT tag is nested inside a CFMAIL tag that also has a QUERY= attribute. This is not allowed. Nesting these tags implies that you want to use grouped processing. However, only the top-level tag can specify the query that drives the processing.
Scenario: Purchase order system....the user is getting email notifying that their manager has approved their order and I want to list just the items they ordered. If I have the cfmail query based on this query, it will produce how ever many emails as items....which wouldn't be appreciated!
Here's a snippet of the code:
<cfmail to="#getOrderInfo.RequestedByEmail#" from="#ManagerEmail#" subject="Purchase Order Request - Approved" server="xxxx.xxx.xxx.xxx" port=25 type="HTML">
#attributes.ManagerName# has approved your Purchase Order <cfif POType is "LV">(#PONum#) </cfif>as of #today#.
<p>
It included the following items<p></p>
<cfoutput query="yourOrder">#description#<br> </cfoutput><p></p>
Any suggestions?
Stephanie