dreampolice
Technical User
I need to send an individual email to about 100 names fetched from an Access 2003 database. I am fetching the distinct emails from the database and getting each Project owned by each distinct email address.
I created the correct output on a test web page where the query will list every distinct email address with each email address having their own Project Title listing. Now the question is how do I use my output to send an individual email to each of the distinct email addresses I got in my query??
For example someone with the email Address of johnson@company.com would get one email with his Project Title listings that could be 3 or 4 titles. The next distinct email address of smith@company.com will get his own email with his Project title listings.
Here is my attempt but the #userEmail# has everyones email address.
Please help.
I created the correct output on a test web page where the query will list every distinct email address with each email address having their own Project Title listing. Now the question is how do I use my output to send an individual email to each of the distinct email addresses I got in my query??
For example someone with the email Address of johnson@company.com would get one email with his Project Title listings that could be 3 or 4 titles. The next distinct email address of smith@company.com will get his own email with his Project title listings.
Here is my attempt but the #userEmail# has everyones email address.
Code:
<cfoutput query = "theQuery" group = "userEmail">
<cfmail to: #userEmail# subject: Project Listing
<cfoutput>Project Listing: #ProjectTitle#</cfoutput>
<cfmail>
</cfoutput>