<cfmail> doesn't require <cfoutput> tags within it.  anything within # in <cfmail> is treated as a variable and evaluated.

<cfmail
    to="blah"
    from="blah"
    subject="how's the blah?"
>

City: #findcity.city#

</cfmail>

the <cfmail> tag also accepts a QUERY attribute so you wouldn't necessarily have to scope 'city' with 'findcity'.

  ----- Original Message -----
  From: Tim Laureska
  To: CF-Talk
  Sent: Wednesday, October 22, 2003 9:20 AM
  Subject: cfoutput within cfmail

  Is there anyway to put a cfoutput such as

  <cfoutput query="findcity">#city#</cfoutput>

  within a cfmail tag ...

  I'm getting a "Invalid tag nesting configuration" error:

  "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."

  TIA
  Tim


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to