The NetSmtpClient class implements an object, that provides the email messages sending using the SMTP mail service, built in Windows.
NetSmtpClient is used for interaction with the servers, that do not request user authorization on message sending. If the server requires users authorization prior to the message sending, then it is necessary to implement 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 configured properly beforehand.
| Constructor name | Brief description | |
| CreateWithHost | The CreateWithHost designer creates an object, that provides the email messages sending. | |
| CreateWithHostAndPort | The CreateWithHostAndPort designer creates an object, that provides the email messages sending through the mail server specified port. |
| 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 the message sending is performed. | ||
| The ThisHostCredentials property determines the credentials of the SMTP sending mail server that is used in email messages sending. | ||
| The Timeout property determines the latency period for a message to be sent to server waiting. | ||
| 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. |
| Method name | Brief description | |
| The Send method sends an email message. |
See also: