SmtpServer Class |
Namespace: MailBee.SmtpMail
The SmtpServer type exposes the following members.
Name | Description | |
---|---|---|
SmtpServer |
Initializes a new instance of the SmtpServer class.
| |
SmtpServer(String) |
Initializes a new instance of the SmtpServer class with the given host name or IP address string,
and assigns the top priority to this instance.
| |
SmtpServer(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.
| |
SmtpServer(String, String, String) |
Initializes a new instance of the SmtpServer class with the given host name
or IP address string, enables ESMTP authentication and assigns the top priority to this instance.
| |
SmtpServer(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.
| |
SmtpServer(String, Int32, Int32, Int32, Boolean, AuthenticationMethods, String, String, Boolean, String, ExtendedSmtpOptions) |
Initializes a new instance of the SmtpServer class with the given
parameter values.
| |
SmtpServer(String, Int32, Int32, Int32, Boolean, AuthenticationMethods, String, String, Boolean, String, ExtendedSmtpOptions, Int32, Int32, Int32) |
Initializes a new instance of the SmtpServer class with the given
parameter values.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AccountDomain |
Gets or sets the user domain name on the SMTP relay server.
| |
AccountName |
Gets or sets the user account name on the SMTP relay server.
| |
AllowRefusedRecipients |
Gets or sets whether refused recipients should be allowed when submitting a mail message to the server.
| |
AuthMethods |
Gets or sets a set of authentication methods which can be used when authenticating the user on the server.
| |
AuthOptions |
Gets or sets the options which alter ESMTP authentication process.
| |
AuthPopBeforeSmtp |
Gets or sets whether the Smtp component should perform POP-before-SMTP
authentication prior to connecting to the SMTP server.
| |
AuthUserDefined |
Gets or sets a reference to the instance of a class implementing custom SASL authentication
mechanism.
| |
HelloDomain |
Gets or sets the string to be supplied as an argument of HELO/EHLO commands, or a null reference (Nothing in Visual Basic)
to let MailBee autodetect the correct value (see Hello for details).
| |
IgnoreLoginFailure |
Gets or sets whether the Smtp component should ignore ESMTP or POP-before-SMTP authentication error (if any)
and still attempt to send the message.
| |
LocalEndPoint |
Gets or sets the local end point which will be used when connecting to the SMTP server.
| |
MaxConnectionCount |
Gets or sets the maximum number of simultaneous connections to this SMTP server in multi-thread sending mode.
| |
MaxSendPerSessionCount |
Gets or sets the maximum number of e-mail messages which can be sent within a single connection with the server.
| |
Name |
Gets or sets the host name or IP address string of the SMTP relay server.
| |
Password |
Gets or sets the user account password on the SMTP relay server.
| |
PauseInterval |
Gets or sets the amount of time MailBee must wait prior to connecting to the server after last disconnection from this server.
| |
Pipelining |
Gets or sets whether to use commands pipelining if it's supported by the server.
| |
Port |
Gets or sets the port number on which to communicate with the SMTP relay server.
| |
Priority |
Gets or sets the usage preference of this SMTP relay server as compared to
preferences of other servers in SmtpServers and DnsServers
collections.
| |
Proxy |
Provides access to the settings which allow MailBee to connect to a mail server via a proxy server.
| |
SmtpOptions |
Gets or sets the options which can be used to disable certain extended SMTP capabilities.
| |
SslCertificates |
Provides access to the client and server SSL certificate settings.
| |
SslMode |
Gets or sets how the component should establish TLS/SSL connection with the mail server.
| |
SslProtocol |
Gets or sets the security protocol to be used for performing TLS/SSL negotiation and data encryption.
| |
TargetName |
Gets or sets the target name (Service Principal Name, SPN) of the SMTP relay server.
| |
TcpBufSize |
Gets or sets the size of data chunk MailBee uses when sending e-mail data to the SMTP server.
| |
Timeout |
Gets or sets the amount of time (in milliseconds) the Smtp component will wait for a response from this server.
|
This class is used to specify an SMTP relay server the mail messages should be submitted to. Another type of SMTP server is SMTP MX server which is a server which accepts mail for a particular domain. When the mail message is submitted to SMTP relay server, the relay server performs the following operations:
To specify SMTP relay server in your application, call mailer.SmtpServers.Add method (assuming mailer is an instance of Smtp class).
Note |
---|
When MailBee is used in direct send mode (by performing DNS MX lookup against DNS servers in DnsServers collection), MailBee itself acts as SMTP relay server, and dispatches the mail message to the MX servers of recipients domains. |