473,396 Members | 1,849 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,396 software developers and data experts.

Sending email from a webpage

Hi,

I have a web based asp.net application that iterates through a bunch of
email addresses that are stored in a database and sends email to them.
Now I know this is not ideal (or even the correct way to do this -- a
service would be better) however at present I am left working with what I
have.

I am attempting to send a mailshot of 2008 emails.
I tried this from a webserver within the corporate LAN and it worked,
although it took about 10 minutes to loop through all of the records.
The point is that it worked.

I then accessed the same server from OUTSIDE the corporate LAN and attempted
to do the same test (2008 emails again.)
This failed after about 4 minutes with the message

10060 - Connection timeout
Internet Security and Acceleration Server

I have taken the following steps

I have set the session timeout in IIS to 1 hour.
I have set the script timeout in IIS to I hour.

I have set the timeout of the oledb "command" object to 1 hour in my code.
I can NOT set the timeout of the oledb "connection" object as this setting
is read only.

Can anybody tell me if there is anything else that I can do in the short
term before I rewrite the web application to send email the correct way (via
a service)
..
cheers

martin.


Nov 19 '05 #1
2 1585
You'll want to send the emails asynchronously.

http://www.eggheadcafe.com/articles/20030720.asp

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.masterado.net

"Marty" <ma****@hotmail.com> wrote in message
news:en*************@TK2MSFTNGP09.phx.gbl...
Hi,

I have a web based asp.net application that iterates through a bunch of
email addresses that are stored in a database and sends email to them.
Now I know this is not ideal (or even the correct way to do this -- a
service would be better) however at present I am left working with what I
have.

I am attempting to send a mailshot of 2008 emails.
I tried this from a webserver within the corporate LAN and it worked,
although it took about 10 minutes to loop through all of the records.
The point is that it worked.

I then accessed the same server from OUTSIDE the corporate LAN and
attempted to do the same test (2008 emails again.)
This failed after about 4 minutes with the message

10060 - Connection timeout
Internet Security and Acceleration Server

I have taken the following steps

I have set the session timeout in IIS to 1 hour.
I have set the script timeout in IIS to I hour.

I have set the timeout of the oledb "command" object to 1 hour in my code.
I can NOT set the timeout of the oledb "connection" object as this setting
is read only.

Can anybody tell me if there is anything else that I can do in the short
term before I rewrite the web application to send email the correct way
(via a service)
.
cheers

martin.



Nov 19 '05 #2
Thanks a lot for this robbie,

one again eegHeadCafe comes to the rescue..

cheers

martin.
"Robbe Morris [C# MVP]" <in**@eggheadcafe.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
You'll want to send the emails asynchronously.

http://www.eggheadcafe.com/articles/20030720.asp

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.robbemorris.com
http://www.masterado.net

"Marty" <ma****@hotmail.com> wrote in message
news:en*************@TK2MSFTNGP09.phx.gbl...
Hi,

I have a web based asp.net application that iterates through a bunch of
email addresses that are stored in a database and sends email to them.
Now I know this is not ideal (or even the correct way to do this -- a
service would be better) however at present I am left working with what I
have.

I am attempting to send a mailshot of 2008 emails.
I tried this from a webserver within the corporate LAN and it worked,
although it took about 10 minutes to loop through all of the records.
The point is that it worked.

I then accessed the same server from OUTSIDE the corporate LAN and
attempted to do the same test (2008 emails again.)
This failed after about 4 minutes with the message

10060 - Connection timeout
Internet Security and Acceleration Server

I have taken the following steps

I have set the session timeout in IIS to 1 hour.
I have set the script timeout in IIS to I hour.

I have set the timeout of the oledb "command" object to 1 hour in my
code.
I can NOT set the timeout of the oledb "connection" object as this
setting is read only.

Can anybody tell me if there is anything else that I can do in the short
term before I rewrite the web application to send email the correct way
(via a service)
.
cheers

martin.




Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Leonard | last post by:
I have a requirement, where a user will click on a button, and the Email new message window will open up. The app will fill in the To: column from a database. I have gotten it to work, by using...
1
by: ram | last post by:
i have an webpage which i send to all the users manually but i need to automate the procedure so that they can receive webpage by email everyday, anyideas-- Guys?
2
by: Jim in Arizona | last post by:
I've made an application that is a computer problems (tickets) system. The employee goes to a web page and posts the comptuer problem they're having. Then, the IS staff goes to another webpage...
8
by: Jim in Arizona | last post by:
I was trying to have an email sent when the page loads but having some trouble with it. Our server is an IIS 6.0 with Framework 2.0. It is set to windows authentication (not anonymous). I...
2
by: John | last post by:
Can anyone help me in coding a script that can send a text message typed to the script like. sendmessage 6318019564 "test message" What I want to do is fill up this information on this...
1
by: keystroke17 | last post by:
I have a web application which people connect to and I generate an output file for users when they click on a link. Currently, they are saving this file and then emailing it inside their...
2
by: xyz | last post by:
Hello, I would like to send an email to my web site and have it display the subject and message on my webpage. Any help would be appreciated. My site is uses SMTP mail. Thanks!
0
by: duclm | last post by:
Hi all, II am having problem sending zip file(binary file) using webrequest function from wince5.0 device to a webpage. It works fine for any file with size less than or equal to 1.5kb. Any bigger...
8
by: theaj | last post by:
Hi all, I am tryin to send a mail using ASP through my webpage. There are many web-pages that give code which looks like given below... from the code its obvious that we need to modify it with...
1
by: runway27 | last post by:
<?php $headers = "Content-type: text/html; charset=iso-8859-1"; $to="myemailaddress"; $subject="Email Newsletter"; $message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.