Welcome to Dream.In.Code
Become an Expert!

Join 137,391 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,135 people online right now. Registration is fast and FREE... Join Now!




cfmail problem

 
Reply to this topicStart new topic

cfmail problem, when use a list in attribute to=""

Lana_CF
5 Sep, 2006 - 01:04 PM
Post #1

New D.I.C Head
*

Joined: 5 Sep, 2006
Posts: 1


My Contributions
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, blink.gif
Please help!
User is offlineProfile CardPM
+Quote Post

sandro
RE: Cfmail Problem
6 Sep, 2006 - 12:14 AM
Post #2

New D.I.C Head
*

Joined: 1 Sep, 2006
Posts: 19


My Contributions
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, blink.gif
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
User is offlineProfile CardPM
+Quote Post

MAX_CF_MX
RE: Cfmail Problem
11 Sep, 2006 - 07:22 PM
Post #3

New D.I.C Head
*

Joined: 11 Sep, 2006
Posts: 1


My Contributions
Just a guess - Has your list of Email addresses grown over the years?

Could the issue be too many recipients OR the total length of the recipient list is too long?

I have experienced undelievered emails when there were invalid email addresses in the list,
this was caused by internal check to halt spam
example : AAA@myjob.com,ZZZ@yourjob.com
User is offlineProfile CardPM
+Quote Post

wiredwizard
RE: Cfmail Problem
14 Oct, 2006 - 09:59 AM
Post #4

D.I.C Head
Group Icon

Joined: 7 May, 2005
Posts: 73


Dream Kudos: 225
My Contributions
if you are getting undelieveed bounce backs check the addresses in the bounce back message if they are individual emails (ie bob@whatever.com) and not multi (ie bob@whatever.com;ann@whatever.com) then your cfmail tag is working correctly and your smtp server is doing the damage as Max said there is probably a limit on number of recipients. the cleanest solution is to pull your emails from a database that will also help protect thoes email addresses from spameres that may have gotton ahold of your code. Some of the new site scrapers can downlad your site pages with out having the servers render the code that would give them your complete list.
User is offlineProfile CardPM
+Quote Post

AES_DEP
RE: Cfmail Problem
1 Oct, 2008 - 06:38 AM
Post #5

New D.I.C Head
*

Joined: 1 Oct, 2008
Posts: 1

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, blink.gif
Please help!


Have you tried separating your email addresses with semi-colons instead of commas? I use Exchange and have no problem with CFMail as long as I use the semicolon as the delimeter. It's like Exchange treats addresses separated with commas as a single email address.

User is offlineProfile CardPM
+Quote Post

CR250
RE: Cfmail Problem
1 Oct, 2008 - 03:19 PM
Post #6

New D.I.C Head
*

Joined: 14 Jun, 2008
Posts: 22



Thanked: 2 times
My Contributions
QUOTE(AES_DEP @ 1 Oct, 2008 - 07:38 AM) *

Have you tried separating your email addresses with semi-colons instead of commas? I use Exchange and have no problem with CFMail as long as I use the semicolon as the delimeter. It's like Exchange treats addresses separated with commas as a single email address.


I didn't think this is exchange specific. We use multiple mail servers and we always separate with ; rather then , and never had any issues. Try that see how you go.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/5/08 02:31AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month