• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfmail

New Here ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

240

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 30, 2006 Dec 30, 2006
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.

Votes

Translate

Translate
LEGEND ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation