C# Class Rnwood.SmtpServer.DefaultServer

Inheritance: Server
Mostrar archivo Open project: rnwood/smtp4dev Class Usage Examples

Public Methods

Method Description
DefaultServer ( bool allowRemoteConnection ) : System

Initializes a new SMTP server on port 25.

DefaultServer ( bool allowRemoteConnection, Ports port ) : System

Initializes a new SMTP over SSL server on the specified standard port number

DefaultServer ( bool allowRemoteConnection, X509Certificate sslCertificate ) : System

Initializes a new SMTP over SSL server on port 465 using the supplied SSL certificate.

DefaultServer ( bool allowRemoteConnection, int portNumber ) : System

Initializes a new SMTP server on the specified port number.

DefaultServer ( bool allowRemoteConnection, int portNumber, X509Certificate sslCertificate ) : System

Initializes a new SMTP over SSL server on the specified port number using the supplied SSL certificate.

Private Methods

Method Description
DefaultServer ( Rnwood.SmtpServer.DefaultServerBehaviour behaviour ) : System

Method Details

DefaultServer() public method

Initializes a new SMTP server on port 25.
public DefaultServer ( bool allowRemoteConnection ) : System
allowRemoteConnection bool
return System

DefaultServer() public method

Initializes a new SMTP over SSL server on the specified standard port number
public DefaultServer ( bool allowRemoteConnection, Ports port ) : System
allowRemoteConnection bool
port Ports The standard port (or auto) to use.
return System

DefaultServer() public method

Initializes a new SMTP over SSL server on port 465 using the supplied SSL certificate.
public DefaultServer ( bool allowRemoteConnection, X509Certificate sslCertificate ) : System
allowRemoteConnection bool
sslCertificate System.Security.Cryptography.X509Certificates.X509Certificate The SSL certificate to use for the server.
return System

DefaultServer() public method

Initializes a new SMTP server on the specified port number.
public DefaultServer ( bool allowRemoteConnection, int portNumber ) : System
allowRemoteConnection bool
portNumber int The port number.
return System

DefaultServer() public method

Initializes a new SMTP over SSL server on the specified port number using the supplied SSL certificate.
public DefaultServer ( bool allowRemoteConnection, int portNumber, X509Certificate sslCertificate ) : System
allowRemoteConnection bool
portNumber int The port number.
sslCertificate System.Security.Cryptography.X509Certificates.X509Certificate The SSL certificate.
return System