Simply put all e-mails into a list and make a list loop and send mail within
loop.

<cfset mails = "[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]" />
<cfloop index="id" list="#mymaillist#">
        <cfmail to="#id#" from="#request.adminmail#" subject="Mail to #id#">
                Dear #id#
                
                ...
        </cfmail>
</cfloop>


-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 17. August 2006 20:46
To: CF-Talk
Subject: multiple email addresses in cfmail TO attribute.

I've never gotten a straight answer on how you can send one email to
multiple recipients.

<cfmail from="#SiteOwnerEMail#" to="[EMAIL PROTECTED]" type="html"
subject="New Order Submitted">

Do I separate the emails with a comma or with a semicolon? Something else?

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250198
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to