STMP Timeout

May 16, 2013 at 4:19 PM
Edited May 16, 2013 at 4:21 PM
Hi Higty,

I would like to know how to specify a timeout for SMTP transmissions. I looked at the properties of the STMPClient class but there is only 'ReceiveTimeout'.

Thanks
Regards
Max
Coordinator
May 21, 2013 at 8:46 AM
SmtpClient class only have ReceiveTimeout property.
The property manage max receive time of one socket operation.
Does it meet your needs?

What feature do you need about SmtpTimeout?
Please tell me more detail.

regards.
May 21, 2013 at 11:03 AM
Hi,

On an application using the System.Net.Mail class colleagues have had timeout issues on some large mail but handling the property they had solved; on your class, instead, I don't found this property and I was wondering if I were found to handle it how to proceed. In the meantime I got to do a test with your class on the same mail and these were successfully sent; I assume then that does not manage the timeout or use an internal default value greater than that of the Framework class that is 100 secs. Keep in mind that mail approximately 5,4 MB was sent in about 160 secs.

How this is handled in your library?

Thanks
Regards
Max
Coordinator
May 23, 2013 at 12:56 AM
Hi.

Conclusion: I don't handle timeout of entire Smtp sending process.

Here is a article written by me.
http://www.codeproject.com/Articles/399207/Understanding-the-Insides-of-the-SMTP-Mail-Protoco
This article explain about the inside of smtp and HigLabo library.

As you can see in the article, there are a number of request and response inside of SendMail method.
ReceiveTimeout manage each request and response's timeout.
I don't manage entire SendMail method timeout.

regards.