473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 2709
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

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

Similar topics

4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
12
by: pilot | last post by:
I am having trouble sending a form email on a remote W 2003 server. The test script I am using is as follows <%@ Language=VBScript %> <% Set objMessage = CreateObject("CDO.Message")...
16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
5
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address...
9
by: RedMoosh | last post by:
is it possible to rn a client side vbscript to send messages using cdo.message and cdo.configuration? what are the requirements to do this? my wks are xp and 2000 and all have cdosys.dll...
8
by: Akbur | last post by:
Dear all, I'm having major issues sending an email from my ASP.NET app. I'm getting a "Could not create 'CDO.Message' object". When I did a search for cdosys.dll in \win_location\system32, I...
3
by: =?Utf-8?B?SlZSdWRuaWNr?= | last post by:
Hey... thinking that I may need to upgrade my skillset when it comes to ASP based form-to-email scripting. is CDOSYS the best still on a w2k3/iis6 box? if so, can someone point me at the...
9
by: paulmitchell507 | last post by:
I have a file called email2.asp which I am using to mail data obtained from a SQL query. I would like to pass the holiday_ID value in the querystring attached to the end of the URL. It all works...
6
by: jbguernsey | last post by:
for: There was no reference to CDO in the References so selected CDO. Code didn't work (CDONTS.email unrecognised). read There was no reference to CDONTS in the References so selected CDO....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.