wilcoHead
Programmer
- Feb 2, 2005
- 85
I have a weekly mailer that goes out to over 1000 contacts. When I send this I am getting a CFMAIL timeout error:
------------------------------------------
"The request has exceeded the allowable time limit Tag: cfmail"
-------------------------------------------
I am using an access DB - My quesstion is, what is the fastes way to loop oveer the contacts and send out the e-mails without getting a timeout error?
-------------------------------------------
The Code
-------------------------------------------
<CFQUERY NAME="GetMailContacts" DATASOURCE="#request.dsn#" DBTYPE="ODBC">
SELECT *
FROM MailTable
</CFQUERY>
<CFMAIL
QUERY="GetMailContacts"
TO="#GetMailContacts.EmailFld#"
FROM="me@mysite.com"
SUBJECT="Weekly Mailer"
timeout="300">
<cfmailpart
type="text"
wraptext="74">
You are reading this message as plain text, because your mail reader
does not handle HTML text.
</cfmailpart>
<cfmailpart
type="html">
<---HTML Newsletter Here --->
</cfmailpart>
</CFMAIL>
-------------------------------------------------------
Thanks for your input;
WilcoHEAD
------------------------------------------
"The request has exceeded the allowable time limit Tag: cfmail"
-------------------------------------------
I am using an access DB - My quesstion is, what is the fastes way to loop oveer the contacts and send out the e-mails without getting a timeout error?
-------------------------------------------
The Code
-------------------------------------------
<CFQUERY NAME="GetMailContacts" DATASOURCE="#request.dsn#" DBTYPE="ODBC">
SELECT *
FROM MailTable
</CFQUERY>
<CFMAIL
QUERY="GetMailContacts"
TO="#GetMailContacts.EmailFld#"
FROM="me@mysite.com"
SUBJECT="Weekly Mailer"
timeout="300">
<cfmailpart
type="text"
wraptext="74">
You are reading this message as plain text, because your mail reader
does not handle HTML text.
</cfmailpart>
<cfmailpart
type="html">
<---HTML Newsletter Here --->
</cfmailpart>
</CFMAIL>
-------------------------------------------------------
Thanks for your input;
WilcoHEAD