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

SmtpClient timeout wont set

Frinavale
9,735 Expert Mod 8TB
Hi there,

I am currently behind a firewall that wont let me send emails.

As a result my smtpClient.send(emailMessage) wont work on my IIS but this method does work through the VisualStudio development/test environment.

Lately I've been testing the cases where my site encounters a fault to make sure everything is handled nicely. My only concern is that the smtpClient.send() is taking way to long to time out.

I've already tried to set the timeout property but it isn't helping. It always takes up to 3 minutes to crash and this is just not acceptable by my standards (maybe I'm just impatient)

Does anyone know why the timeout property isn't setting the timeout to take less time?

Also I'm just double checking: is the timeout property value in seconds?

Thanks

-Frinny
Jan 17 '07 #1
3 6257
Frinavale
9,735 Expert Mod 8TB
Hi again,

I don't know why but upon rebooting this problem (that's been bothering me for a couple days now) suddenly went away. (?)

I'm sure now that the timeout property is in seconds....(I was thinking that it was in minutes for a while there..hehe)

-Frinny
Jan 17 '07 #2
kenobewan
4,871 Expert 4TB
You are right - timeout is in seconds. If you aren't getting the timeout that you set programmtically, then there is usually a conflicting setting - often in the web.config. Have there been changes to this file or the server/ machine?
Jan 18 '07 #3
Frinavale
9,735 Expert Mod 8TB
You are right - timeout is in seconds. If you aren't getting the timeout that you set programmtically, then there is usually a conflicting setting - often in the web.config. Have there been changes to this file or the server/ machine?

Not that I know of.

I ported the application to a new server (basically for backing up) and the time out doesn't work there at all...maybe I haven't set up the servers properly. But it did suddenly start working on my main development server....I'm not sure why because I didn't change anything.

I'll take a look into this.

Thanks

-Frinny
Jan 18 '07 #4

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

Similar topics

8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
1
by: Nick Z. | last post by:
I am trying to connect to my SMTP server using the SmtpClient class. For some reason its refusing to work. Here is the code and the error I get. ...
1
by: Charles Waudby | last post by:
Cannot get the SMTPClient to work with a Smart Host provided by Cable and Wireless to the NHS in England using SSL and authentication. It works using Outlook 2003 client and our code works with a...
10
by: David Thole | last post by:
Hey all, I'm still very new at all this, but am going through the ASP.net 2.0 unleashed book, first chapter and trying to program my own little form emailer for fun. I tried following the code...
0
by: howardr101 | last post by:
Hi, Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and it occus with both. The problems seems to be that...
1
by: Sammy | last post by:
I am using the following code on a company that hosts our web site. I have noticed lately that their mail server/smtp is unavailable several times a minute for a second or two. This is causing my...
1
by: Kevien Lee | last post by:
Hi, When use the SmtpClient class,it is easy to send an e-mail,but how to konw that if the mail send successful,such as timeout and so on? can anyone advice me? Thanks
0
by: adamalton | last post by:
I'm trying to investigate the way PHP behaves in relation to timeouts and included scripts. PHP seems to do very strange things when scripts that include other scripts timeout, or when the included...
7
by: Rob Dob | last post by:
The following code is giving me a timeout problem., no matter what I do I can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port 465 and using ssl, if however I try using...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...

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.