SmtpServerMaxConnectionCount Property
Gets or sets the maximum number of simultaneous connections to this SMTP server in multi-thread sending mode.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
public int MaxConnectionCount { get; set; }

Property Value

Type: Int32
Non-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).
MailBeeInvalidArgumentExceptionvalue is zero.
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