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

Timeout error when sending large email

BVM
Hi:

I have a problem when sending large email(more than 20Mb) from a web page. I got timeout error. How to overcome this problem? I am thinking to have a thread to send email. Once the thread starts, return response to client immediately. The client should be able to kee checking if the thread is finished. If it's finished, return back a value. I don't know whether it works or not. Any idea, please.

Thanks,

Dennis
Nov 18 '05 #1
5 2063
"BVM" <De*****@TBH.com.au> wrote in
news:#2**************@TK2MSFTNGP09.phx.gbl:
I have a problem when sending large email(more than 20Mb) from a web
page. I got timeout error. How to overcome this problem? I am thinking
to have a thread to send email. Once the thread starts, return response
to client immediately. The client should be able to kee checking if the
thread is finished. If it's finished, return back a value. I don't know
whether it works or not. Any idea, please.


You need to use the async calls and feed back a little bit of data at a time
to keep the browser happy.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #2
Actually, if you're sending via a local SMTP service I have found that constructing a .msg formatted email and dumping it to the inetpub\mailroot\pickup folder is by far the best way. By doing this, it writes out the whole message and the pickup folder is essentially putting it in queue and allows the page to continue loading. You'll need to read up a bit more about it and MIME encoding, but it's my favorite way.

If you're using a remote SMTP service you've got no choice but to do as the other post instructed with async or feeding data to browser at intervals to it from timing out. (You can do Response.Write("<I></I>"); as long as you want. Note that this is generally a bad practice though)
"BVM" <De*****@TBH.com.au> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi:

I have a problem when sending large email(more than 20Mb) from a web page. I got timeout error. How to overcome this problem? I am thinking to have a thread to send email. Once the thread starts, return response to client immediately. The client should be able to kee checking if the thread is finished. If it's finished, return back a value. I don't know whether it works or not. Any idea, please.

Thanks,

Dennis

Nov 18 '05 #3
BVM
Thanks. How to do async calls?

Dennis

"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn******************@127.0.0.1...
"BVM" <De*****@TBH.com.au> wrote in
news:#2**************@TK2MSFTNGP09.phx.gbl:
I have a problem when sending large email(more than 20Mb) from a web
page. I got timeout error. How to overcome this problem? I am thinking
to have a thread to send email. Once the thread starts, return response
to client immediately. The client should be able to kee checking if the
thread is finished. If it's finished, return back a value. I don't know
whether it works or not. Any idea, please.
You need to use the async calls and feed back a little bit of data at a

time to keep the browser happy.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #4
BVM
Thanks. I am using remote SMTP services.

Dennis
"Craig" <cs******@remoovdis.kc.rr.com> wrote in message news:#y**************@TK2MSFTNGP12.phx.gbl...
Actually, if you're sending via a local SMTP service I have found that constructing a .msg formatted email and dumping it to the inetpub\mailroot\pickup folder is by far the best way. By doing this, it writes out the whole message and the pickup folder is essentially putting it in queue and allows the page to continue loading. You'll need to read up a bit more about it and MIME encoding, but it's my favorite way.

If you're using a remote SMTP service you've got no choice but to do as the other post instructed with async or feeding data to browser at intervals to it from timing out. (You can do Response.Write("<I></I>"); as long as you want. Note that this is generally a bad practice though)
"BVM" <De*****@TBH.com.au> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi:

I have a problem when sending large email(more than 20Mb) from a web page. I got timeout error. How to overcome this problem? I am thinking to have a thread to send email. Once the thread starts, return response to client immediately. The client should be able to kee checking if the thread is finished. If it's finished, return back a value. I don't know whether it works or not. Any idea, please.

Thanks,

Dennis
Nov 18 '05 #5
"BVM" <De*****@TBH.com.au> wrote in news:uumSvks5DHA.1936
@TK2MSFTNGP12.phx.gbl:
Thanks. How to do async calls?


Im not sure how using ASP.net. You'll have to do some digging there. Sorry.
:)
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Nov 18 '05 #6

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

Similar topics

14
by: Al Smith | last post by:
I need help in implementing proper error handling. I am trying to upload a file based on the sample code below. The code works well except if the file selected is too big. I do know about the...
2
by: Mustafa Yesilkaya | last post by:
Hi. I have a problem with sql server. I have thousands of record in a database table. When i want to list all with SELECT * command in asp.net page, an error message comes : SQL SERVER TIMEOUT. ...
4
by: Pritam Javale | last post by:
When using Datagrid ASP.NET pages, the time required to execute a report is much more greater than when the same report is generated using a ASP page. Also the ASPX page almost always gives a...
4
by: Cindy Lee | last post by:
The service works fine with small data, 75k, but if I'm sending 1meg or ..5meg, it times out. and I get the error below. I'm running a C# .net client (the error is from windows command line) and...
2
by: Bob Bedford | last post by:
I've seen many implementations of the timeout hack when sending a lot of emails. I can't set the timeout variable, as it's timeout(0) doesn't work, I still have 30 seconds. I've to send many...
8
by: Roger Dodger | last post by:
I have to send out 2500 e-mails to student survey recipients. The e-mails will appear to come from the specific departments that they belong to. I'm utilizing PHPmailer in the scripts I wrote to...
5
by: yawnmoth | last post by:
Say I have the following script: <? $timeout = 5; $start = time(); $fsock = fsockopen('125.1.119.10',80,$errno,$errstr,$timeout); // reduce $timeout by the amount of time that it took for...
3
by: fluxent | last post by:
(Environment: RedHat Linux recent, Python 2.3.5) We have a batch processing script that on occasion needs to send out an email. We have a sendmail running locally. Sometimes we get a socket...
1
by: alvinstraight38 | last post by:
I have a client who has been receiving hundreds of SQL timeout error messages in their error logs. Specifically, the message looks like this: MESSAGE :...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.