What does the timeout default to in the .NET SmtpClient object? What unit of time is it (seconds, milliseconds, etc)?
Timeout Property. Gets or sets the maximum time interval(seconds) the object will wait for a response from server before returning an error.
SMTP Client in C# and VB.NETThe Simple Mail Transfer Protocol (SMTP) is the only standard protocol for sending mail messages over the Internet. GemBox. Email enables you to work with the SMTP protocol in C# and VB.NET using an SmtpClient class.
The SmtpClient class has no Finalize method. So an application must call Dispose to explicitly free up resources. The Dispose method iterates through all established connections to the SMTP server specified in the Host property and sends a QUIT message followed by gracefully ending the TCP connection.
The default value is 100,000 (100 seconds).
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.timeout.aspx
The unit is milliseconds, and the default value is 100,000 which is equivalent to 100 seconds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With