SmtpServer Constructor (String, String, String, AuthenticationMethods)
Initializes a new instance of the SmtpServer class with the given host name or IP address string, enables ESMTP authentication using the specified methods, and assigns the top priority to this instance.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public SmtpServer(
	string name,
	string accountName,
	string password,
	AuthenticationMethods authMethods
)

Parameters

name
Type: SystemString
The host name or IP address of the SMTP relay server.
accountName
Type: SystemString
The user account name on the server.
password
Type: SystemString
The user account password on the server.
authMethods
Type: MailBeeAuthenticationMethods
A set of authentication methods which can be used when authenticating the user on the server.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionname is a null reference (Nothing in Visual Basic).
See Also