SmtpGetCurrentSmtpServerIndex Method
Returns SmtpServers collection's index of the server to which the component is connected or will connect on the next connection attempt.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public int GetCurrentSmtpServerIndex()

Return Value

Type: Int32
If already connected to the SMTP relay server, the return value is the index of this server in SmtpServers collection; if not currently connected to the server, the return value is the index of the server to which the component will connect on the next connection attempt. The default value is 0.
Remarks
This property is useful when SmtpServers collection contains more than one SMTP relay server, and the application needs to know which one is used now or will be used when the time to connect to an SMTP server comes. If SmtpServers collection contains one or zero elements, this method will return 0.
See Also