QUOTE(Lana_CF @ 5 Sep, 2006 - 02:04 PM)

We had used list of emais in <cfmail to="" attribute for years and it was working fine:
<cfmail to = "JoeShmoe@something.com, LanaBanana@something.com, SillyWilly@something.com" ....
Now it stop working and all emails end up in UNDELIVER foder.
But If we use LOOP thru this list, then it works fine:
<cfset mylist ="JoeShmoe@something.com, LanaBanana@something.com, SillyWilly@something.com">
<cfloop list="#mylist#" index="i">
<cfmail to="#i#"
......
</cfloop>
What could happend? Why it doesn't work any more like it used to work before?
Friends,
Please help!
Hi Lana_CF,
I had the same problem trying to send an email to multiple addresses separated by comma or semicolon. I never managed it even if the official documentation says it is possible.
I also made sure the SMTP server could send the message to more than one user but still nothing. I have the feeling this is a minor bug but it should be really confirmed by Adobe.
I searched in various groups and sites and I couldn't find a solution.
In any case the method of the <cfloop> through a list seems to be the preferred one by most developer. Codewise it will look cleaner. Even better if you use a query to retrieve your email addresses.
Sorry no solution but I thought I should share.
Sandro