|
If you emailing a single person or the content of the CFMAIL
body contains the same information for everyone, you can build the Body
portion of the CFMAIL tag prior to using the CFMAIL
tag.
Example: <CFSET EmailBody = "">
<--- Perform a query, loop, etc. and add the results to the EmailBody
variable: --->
<CFQUERY NAME="Info" DATASOURCE="Test">
SELECT
* FROM TEST
</CFQUERY>
<CFOUTPUT QUERY="Info">
<CFSET EmailBody = EmailBody + "Question: " + Info.Question + "
Answer: " + Info.Answer + "<BR>">
</CFOUTPUT>
<CFMAIL TO="" FROM="">
#variables.EmailBody#
</CFMAIL>
Randy
Ellis
City
of Overland Park
Senior
Programmer Analyst
|
Title: Message
- [KCFusion] cfmail Adaryl Wakefield
- Re: [KCFusion] cfmail Ellis, Randy
- Re: [KCFusion] cfmail Adaryl Wakefield
- RE: [KCFusion] cfmail Ellis, Randy
- RE: [KCFusion] cfmail Doug Teetzen
- [KCFusion] cfmail Adaryl Wakefield
- Re: [KCFusion] cfmail Ramsey Abu-Absi
- RE: [KCFusion] cfmail Hale, Frederick L, WCS
