472,983 Members | 2,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,983 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 2690
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.