468,765 Members | 1,413 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

ASP Bulk Email Script With CDOSYS timesout

37
Hi,

I have a asp email script which uses cdosys to send emails with attahcments by iterating through a record set of 500 email addresses. However the script simply times out. I know you can increase the script timeout property in IIS but is there any other way of sending bulk emails with cdosys without it timing out?

Any help would be greatly appreciated.
Mar 21 '07 #1
5 2580
iam_clint
1,208 Expert 1GB
you can response.flush

and you can do server.timeout = 5000000 (milliseconds)
Mar 21 '07 #2
ozzii
37
you can response.flush

and you can do server.timeout = 5000000 (milliseconds)

Hi where do i include the response.flush line? is it after the send method?

Will this work for say 1000 email addresses and perhaps more?
Mar 22 '07 #3
sani723
117 100+
The mail component built into ASP.Net can handle your bulk mailing, however it is more intended for single emails.

Generally any web scripting language (php, asp.net, etc.) are not that great of a match for a large, time consuming process - such as mailing a large list. This can cause threading issues, thread pools to get exhausted, etc.

What's a better method is to have a background script running that takes care of these, and the web page only triggers something so the other application knows it needs to go send the mails. This isn't always practical however.

The various bulk SMTP mailers, as you say, write the mail queue to the disk quickly so your asp.net page returns, then they send it in a background thread (almost like I am describing above, but not quite as good).

The built in component can do this, just don't specify a smtp server and it will spool the mail to the local SMTP server (note: SMTP service must be installed on server).
Mar 22 '07 #4
ozzii
37
The mail component built into ASP.Net can handle your bulk mailing, however it is more intended for single emails.

Generally any web scripting language (php, asp.net, etc.) are not that great of a match for a large, time consuming process - such as mailing a large list. This can cause threading issues, thread pools to get exhausted, etc.

What's a better method is to have a background script running that takes care of these, and the web page only triggers something so the other application knows it needs to go send the mails. This isn't always practical however.

The various bulk SMTP mailers, as you say, write the mail queue to the disk quickly so your asp.net page returns, then they send it in a background thread (almost like I am describing above, but not quite as good).

The built in component can do this, just don't specify a smtp server and it will spool the mail to the local SMTP server (note: SMTP service must be installed on server).

So how does one exactly run an ASP script that runs in a background thread? I've been searching on the net and cant for the life of me find any decent tutorials. Any sample code or example will be appreciated. Thanks
Apr 18 '07 #5
I know this response is a bit late, but I just found the site, and maybe someone in the future may find this info useful. There is an open source project called phplist (http://www.phplist.com/) that will help you with this task. It sounds like you have a windows server, so, if it's configured to support php, this solution may be perfect for you. You can configure the newsletter app to send out emails to X number of addresses, with 1 minute (or more) paused in between emails.

There are some ASP applications available for newsletters, however I'm not aware of one that offers pauses. At one point I was thinking about building an app that could do this, using AJAX and ASP, however, I don't know how great the need is. Let me know if there's interest in such an open source app.

Anthony
simplesoftsolutions.com
May 17 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

12 posts views Thread by pilot | last post: by
16 posts views Thread by Philip Boonzaaier | last post: by
5 posts views Thread by Andreas | last post: by
8 posts views Thread by Akbur | last post: by
3 posts views Thread by =?Utf-8?B?SlZSdWRuaWNr?= | last post: by
9 posts views Thread by paulmitchell507 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.