SmtpServerMaxConnectionCount Property |
Gets or sets the maximum number of simultaneous connections to this SMTP server in multi-thread sending mode.
Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public int MaxConnectionCount { get; set; }
Public Property MaxConnectionCount As Integer
Get
Set
Property Value
Type:
Int32Non-zero integer specifying the maximum allowed number of simultaneous connections to this server in multi-thread sending mode.
The default value is -1 (number of connections is unlimited).
Exceptions Remarks
In multi-thread mode (
MaxThreadCount > 1) the
Smtp component can establish
multiple connections to the same SMTP server. However, if
MaxThreadCount is fairly high and the server
resticts the number of simultaneous connections from the same IP address to a certain value, it will start rejecting connection attempts
if the current connection count exceeds the allowed limit. In this case,
MaxConnectionCount property value must be
set to any positive value which does not exceed the corresponding setting on the SMTP server.
See Also