cfmail problem

when use a list in attribute to=""

Page 1 of 1

5 Replies - 8143 Views - Last Post: 01 October 2008 - 04:19 PM Rate Topic: -----

#1 Lana_CF  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-September 06

cfmail problem

Posted 05 September 2006 - 02:04 PM

We had used list of emais in <cfmail to="" attribute for years and it was working fine:

<cfmail to = "[email protected], [email protected], [email protected]" ....

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 ="[email protected], [email protected], [email protected]">

<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:
Please help!

Is This A Good Question/Topic? 0
  • +

Replies To: cfmail problem

#2 sandro  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 19
  • Joined: 01-September 06

Re: cfmail problem

Posted 06 September 2006 - 01:14 AM

View PostLana_CF, on 5 Sep, 2006 - 02:04 PM, said:

We had used list of emais in <cfmail to="" attribute for years and it was working fine:

<cfmail to = "[email protected], [email protected], [email protected]" ....

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 ="[email protected], [email protected], [email protected]">

<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:
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
Was This Post Helpful? 0
  • +
  • -

#3 MAX_CF_MX  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-September 06

Re: cfmail problem

Posted 11 September 2006 - 08:22 PM

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 : [email protected],[email protected]
Was This Post Helpful? 0
  • +
  • -

#4 wiredwizard  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 76
  • Joined: 07-May 05

Re: cfmail problem

Posted 14 October 2006 - 10:59 AM

if you are getting undelieveed bounce backs check the addresses in the bounce back message if they are individual emails (ie [email protected]) and not multi (ie [email protected];[email protected]) 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.
Was This Post Helpful? 0
  • +
  • -

#5 AES_DEP  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-October 08

Re: cfmail problem

Posted 01 October 2008 - 07:38 AM

View PostLana_CF, on 5 Sep, 2006 - 02:04 PM, said:

We had used list of emais in <cfmail to="" attribute for years and it was working fine:
<cfmail to = "[email protected], [email protected], [email protected]" ....
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 ="[email protected], [email protected], [email protected]">
<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:
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.
Was This Post Helpful? 0
  • +
  • -

#6 CR250  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 58
  • Joined: 14-June 08

Re: cfmail problem

Posted 01 October 2008 - 04:19 PM

View PostAES_DEP, on 1 Oct, 2008 - 07:38 AM, said:

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1