1 Reply Latest reply on Dec 30, 2006 8:41 AM by Dan Bracuk

    cfmail

    RyanG24 Level 1
      Hi i have a cfoutput which displays fine, i need to email the output using cfmail

      i am getting an error as i have a cfouput query inside the cfmail tag

      i am not sure how to get around this as i need to display rows from my database

      any ideas
        • 1. Re: cfmail
          Dan Bracuk Level 5
          cfmail includes an implied cfoutput tag. Armed with that info, there are two approaches.

          One is to use a cfloop tag instead of a cfoutput tag. The other is to generate your content with the cfsavecontent tag and put the resulting variable into your mail.

          If your intent is to display and mail the same info, the second approach allows you to do this with less code.