Gets or sets the maximum number of simultaneous connections to this SMTP server in multi-thread sending mode.
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).
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.
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | value is zero. |
SmtpServer Class | MailBee.SmtpMail Namespace | MaxThreadCount