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.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public SmtpServer(
string name,
string accountName,
string password,
AuthenticationMethods authMethods
)
Public Sub New (
name As String,
accountName As String,
password As String,
authMethods As AuthenticationMethods
)
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 See Also