Simple answer:  BCC everyone
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Karen Harker
Sent: Monday, February 05, 2001 7:42 AM
To: [EMAIL PROTECTED]
Subject: Re: CFMAIL comma-delimited list

Where's the code for the loop? That should have worked.  The easiest way is to loop through - whether you use CFLOOP or CFOUTPUT QUERY.  Other ways are much too complex.
 
This is what your code should look like, if you have already set your list to a local variable (called, let's say, "emailList"):
<CFLOOP LIST="#emailList#" INDEX="address">
    <CFMAIL FROM=[EMAIL PROTECTED] TO="#address#">
         Message text goes here.
    </CFMAIL>
</CFLOOP>
 
One thing you want to be sure of is that there are no commas in your list that are not delimiters. Although this is highly unlikely with email addresses, you may want to check your data.
 
 
If you use a query results (called, let's say, "GetEmail" that SELECTs a field called, let's say, "email"), it's a little easier:
<CFOUTPUT QUERY="GetEmail">
  <CFMAIL FROM=[EMAIL PROTECTED] TO="#GetEmail.email#">
     Message text goes here.
   </CFMAIL>
</CFOUTPUT>
Good luck!
 
 
Karen R. Harker, MLS
UT Southwestern Medical Library
5323 Harry Hines Blvd.
Dallas, TX  75390-9049
214-648-1698
http://www.swmed.edu/library/

>>> [EMAIL PROTECTED] 2/5/01 3:14:34 AM >>>
I am generating emails for users using a comma-delimited list of email
addresses, but I do not want each recipient to see all the other users on
the list. I tried to use cfloop to loop through the list one at a time, but
for some reason didn't work. Does anyone know how to hide the other
addresses from each user. Any help will be greatly appreciated.


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to