Represents a sorted collection of SmtpServer objects.
For a list of all members of this type, see SmtpServerCollection Members.
System.Object
System.Collections.CollectionBase
MailBee.SortableByPriorityCollection
MailBee.SmtpMail.SmtpServerCollection
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
When SmtpServers collection is populated with at least one SMTP relay server of the same or higher priority than the top priority DNS server in DnsServers collection (or DnsServers collection is empty), Smtp component will attempt to send the mail message to the first SMTP relay server SmtpServers collection. If it fails, MailBee will attempt to connect and send to lower priority SMTP relay servers. If this fails too and DnsServers collection is not empty, the mail message will be sent in direct send mode.
If the top priority SMTP relay server has lower priority than the top priority DNS server in DnsServers collection, Smtp component will attempt to send the mail message in direct send mode, and then try to send to SMTP relay servers if certain recipients failed during direct send.
When Connect method is called (rather than Send), the Smtp component will attempt to connect to the SMTP relay servers in the same way as described above. However, if all SMTP relay servers failed, no attempt to perform direct send is made (because Connect method does not send any mail messages, it only connects to an SMTP relay server). In other words, when the connection is established via explicit call to Connect method, direct send mode and DnsServers collection are never used.
Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll)
SmtpServerCollection Members | MailBee.SmtpMail Namespace