you could have a mailserver recordset listing your mailservers, then use a
counter in your loop that gets reset when it reaches the
mailserverrecordcount. Then your loop would write the mailserver into the
cfmail tag.
DRE
-Original Message-
From: Buddy [mailto:[EMAIL PROTECTED]]
Sent:
This might be helpful:
cfset mailservers=ArrayNew(1)
cfset mailservers[1]=mail1
cfset mailservers[2]=mail2
cfset mailservers[3]=mail3
cfloop from=1 to=#N# index=i
cfset servernumtouse= i MOD ArrayLen(mailservers) + 1
...
cfmail server=#mailservers[servernumtouse]# ...
/cfloop
Why not specific the server tag in the cfmail based on a round robin or
looping list.
Matt
-Original Message-
From: Buddy [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 12:33 PM
To: CF-Talk
Subject: rotating mail servers - cfmail...
Hey everyone, I'm writing a mail app and
Using a query column with the email addresses...
Divide the number of email by three, and use the udf
http://www.cflib.org/udf.cfm?ID=117 to spilt the query into 3 even parts.
Are these emails personalized, or are they all the same piece of
email? If they are all the same, then just use the
: Re: rotating mail servers - cfmail...
Using a query column with the email addresses...
Divide the number of email by three, and use the udf
http://www.cflib.org/udf.cfm?ID=117 to spilt the query into 3 even parts.
Are these emails personalized, or are they all the same piece of
email
On Fri, 16 Aug 2002, Buddy wrote:
Hey everyone, I'm writing a mail app and looking for suggestions for a cool
way to handle part of the app:
I am sending a bunch of emails out with CFMAIL. I am looping over a list of
the addresses, it could be from a query or a struct or an array, doesn't
CFX_ActivMail allows you to specify a list of mail servers that it will use
to load balance between, and if one of your mail server crashes all your
mail will still go out.
http://www.cfdev.com/activmail/
_
Pete Freitag
CTO, CFDEV.COM
7 matches
Mail list logo