Hey all,
 
When usiong CFMAIL, how can i send to multiple recipients other than those
allowed in the CFMAIL tag scope using a form with say 3-5 e-mail textboxes
for the user to type in?? Can I have say 3-5 textfields with same name and
loop over those fields to determine who gets the email on form submit??
 
I've got the below and all works fine (when i know who i'm sending to):
 
<cfmail to= [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
      cc=" [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> "
      bcc= [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
      from=" [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> " 
      subject="multi e-mails test" 
      type="HTML">
 
    **html shite here**
 
</cfmail>
 
can I have:
 
<cfloop list="#trim(FORM.emailAddress)#" index="i">
 
<cfmail to=#val(i)#     
      from=" [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> " 
      subject="multi e-mails test" 
      type="HTML">
 
    **html shite here**
 
</cfmail>
</cfloop>
 
what if they don't choose to send onto any other peoples  
 
matt


**********************************************************************"
This correspondence is for the named person's use only. It may
contain confidential or legally privileged information or both. "
No confidentiality or privilege is waived or lost by any "
mistransmission.  If you receive this correspondence in error, please
immediately delete it from your system and notify the sender.  You 
must not disclose, copy or rely on any part of this correspondence 
if you are not the intended recipient. 

Any views expressed in this message are those of the individual sender,
except where the sender expressly, and with authority, states them to
be the views of Vodafone.

This email has been checked for viruses.
**********************************************************************


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to