Two points.
1. separating email addresses with a semicolon is a M$oft Outlook/Exchange
thing. Many (most) email systems will want COMMAS, NOT semicolons.
2. we've had a problem sending to a list. In the case where one of the
emails in the list is not valid, the ones AFTER it don't get sent. For this
reason we adapted our code (which sends email to only a few people, not
dozens or hundreds) to loop OUTSIDE the CFMAIL tag sending one separate
email to each address.
<cfloop list="#SdMITo#" delimiters=";" index="oneEmail">
<cfmail to="#oneEmail#" ...>
</cfmail>
</cfloop>
> -----Original Message-----
> From: Les Mizzell [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, October 23, 2000 3:45 PM
> To: CF-Talk
> Subject: Further <CFMAIL> Questions
>
> Still playing with getting email sent to the proper folks from a bunch of
> forms...
>
> I'm using a list and "ListAppend" to build up the addresses that the email
> goes to. Usually it's about 5 different address, which come from a
> database, a few form fields and/or data driven drop down lists.
>
> So, my once my list is built ("SdMlTo"), which I'm having no trouble
> with...
>
> Which is better?
>
> <CFMAIL to="#SdMlTo#" <!--- which is the entire list separated by ";"s
> --->
>
> or separate emails sent to each folk in the list? I know how to do a
> query
> from a database to send to multiple recipients, and <CFMAIL> will loop
> through each returned address in the query, but how would I get it to loop
> through my list "SdMlTo" to send to each recipient separately? Or do I
> even
> need to worry about that?
>
> Actually, I would, because there may be a case where I need to send out
> the
> same email to the 5 returned addresses, but maybe an attachment to only
> ONE
> of them......
>
>
> TIA!
>
>
> Les Mizzell
> ***********
> The main reason Santa is so jolly is
> because he knows where all the bad girls live.
>
> --------------------------------------------------------------------------
> ----------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
> a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]