SmtpServer Constructor (String, Int32, Int32)
Initializes a new instance of the SmtpServer class with the given host name (or IP address string) and port number, and assigns the specified priority to this instance.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public SmtpServer(
	string name,
	int port,
	int priority
)

Parameters

name
Type: SystemString
The host name or IP address of the SMTP relay server.
port
Type: SystemInt32
The port on which to communicate with the SMTP relay server. The standard SMTP port is 25.
priority
Type: SystemInt32
A preference of the SMTP relay server. Lower values are preferred.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionname is a null reference (Nothing in Visual Basic) or port is an invalid port number.
Remarks
You can find more information on the server priority in SortableByPriorityCollection class documentation.
See Also