MailBee.NET Objects 4.0

SmtpServer.MaxConnectionCount Property

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

public int MaxConnectionCount {get; set;}

Property Value

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).

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.

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException value is zero.

See Also

SmtpServer Class | MailBee.SmtpMail Namespace | MaxThreadCount