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.
5 2720 iam_clint 1,208
Recognized Expert Top Contributor
you can response.flush
and you can do server.timeout = 5000000 (milliseconds)
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?
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).
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
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
simplesoftsolut ions.com
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 email by creating a text file, with
content following certain format, and saving that file into the correct
'..\mailroot\pickup' folder, and it is working fine
|
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")
objMessage.From = "me"
objMessage.Subject = "test"
objMessage.To = "me@me.com"
objMessage.TextBody = "testing"
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")
|
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 must be UPDATED, if not, they
must be INSERTED.
Logically then, I would like to SELECT * FROM <TABLE>
WHERE ....<Values entered here>, and then IF FOUND
UPDATE <TABLE> SET .... <Values entered here> ELSE
INSERT INTO <TABLE> VALUES <Values...
|
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 with this code:
MailMessage msgMail = new MailMessage();
msgMail.To = "test@address.com";
msgMail.From = "from@address.com";
msgMail.Subject = "Mail Example Subject";
|
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 registered. do i have to have
outlook express loaded. i have workstations that don't have outlook but
rather lotus notes and want to send email to an smtp server. these emails
have local attachment thus the need to run client script versus server...
| |
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 could
not find it. So I copied it from another Windows 2003 server, where
it did exist. Another dependant file was missing too (inetcomm.dll).
|
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 shortest, easiest to configure example
that positively works for sure in this environment?
i sigh, as CDONTs used to work perfectly for me and I hated that it was
|
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 except that
I can't get the value of holiday_ID included as a querystring. As a
test I can insert a value after the ?id= and this is passed as a
querystring.
I am sure it's just the syntax that I am having problem with
|
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.
Code didn't work (CDONTS.email unrecognised).
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |