NetSmtpClient

Description

The NetSmtpClient class implements the object that allows for email messages sending using the SMTP mail service built in Windows.

Constructors

NetSmtpClient is used for interaction with the servers that do not require user authorization on message sending. If the server requires user authorization prior to message sending, it is necessary to use the NetMapiClient class, that is used for message sending by means of the application installed in the operating system as a default mail client. The application must be set up properly beforehand.

Constructors

  Constructor name Brief description
CreateWithHost The CreateWithHost constructor creates an object that provides for email message sending.
CreateWithHostAndPort The CreateWithHostAndPort constructor creates an object that provides for email message sending through the mail server specified port.

Properties inherited from INetSmtpClient

  Property name Brief description
The Credentials property returns the credentials used for the outgoing mail server authorization.
EnableSsl The EnableSsl property determines whether SSL encryption is required to send messages via external mail servers.
The Host property determines the name or the IP address of a sending mail SMTP server.
The Port property determines the port, through which messages are sent.
The ThisHostCredentials property determines the credentials of the SMTP sending mail server that is used on email message sending.
The Timeout property determines the timeout, during which a message is waited to be sent to server.
The UseDefaultCredentials property determines whether to use for all the queries the system accounts for the current security context, in which the application is executed.

Methods inherited from INetSmtpClient

  Method name Brief description
The Send method sends an email message.

See also:

Net Assembly Classes

NetMapiClient