SmtpServerTimeout Property |
Gets or sets the amount of time (in milliseconds) the
Smtp component will wait for a response from this server.
Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public int Timeout { get; set; }
Public Property Timeout As Integer
Get
Set
Property Value
Type:
Int32The amount of time (in milliseconds) the
Smtp component will wait for data to be received from this server
before returning an error, or zero to wait indefinitely. The default value is
DefaultTimeout.
Exceptions Remarks By default, MS Exchange 2010 can delay its reply to the e-mail message data submitted with DATA or BDAT LAST command
for up to 30 seconds (actual delay values can reach 33 seconds). Due to this, MailBee increases the timeout value to 35000 milliseconds
(35 seconds) after submitting e-mail data to the server even if the Timeout value is lower. Once
the operation completes (or throws an exception), it's reverted back to the Timeout value. Of course,
if you explicitly set Timeout to a value greater than 35000 milliseconds, no timeout correction for DATA/BDAT operation
will be made.
See Also