Customizing E-Mail For Multiple Recipients - MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual

Table of Contents

Advertisement

306

Customizing E-mail for Multiple Recipients

In the following example, a query (GetCustomers) is run to retrieve the contact
information for a list of customers. This query is then used to send an e-mail to each
customer asking the person to verify that the contact information is still valid:
<cfmail query="GetCustomers"
Dear #FirstName# -
We'd like to verify that our customer
database has the most up-to-date contact
information for your firm. Our current
information is as follows:
Company Name: #Company#
Contact: #FirstName# #LastName#
Address:
Phone: #Phone#
Fax: #Fax#
Home Page: #HomePageURL#
Please let us know if any of the above
information has changed, or if we need to
get in touch with someone else in your
organization regarding this request.
Thanks,
Customer Service
service@MyCompany.com
</cfmail>
Note that in the
message to be sent to the address listed in each row of the query, and that the mail
body therefore does not use a
columns (FirstName, LastName, and so on) within the
the contents of the message for each recipient.
from="service@MyCompany.com"
to="#EMail#"
subject="Contact Info Verification">
#Address1#
#Address2#
#City#, #State# #Zip#
attribute of
to
Chapter 16 Sending and Receiving E-mail
, the #Email# query column causes one
cfmail
tag. Also note the use of the other query
cfoutput
section to customize
cfmail

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents