The INewSmtp type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| OnPort |
Sets the port on which connection will be made.
| |
| Send |
Sends the message.
| |
| Server |
Sets host name. IP address can also be used.
You can use OnPort(Int32) method to specify non default port.
| |
| WithCredentials |
Sets the SMTP server credentials.
| |
| WithSSL()()()() |
Instructs to use secure SSL connection.
Changes port to default SSL port (465) for SMTP protocol.
| |
| WithSSL(ServerCertificateValidateEventHandler) |
Instructs to use secure SSL connection.
Changes port to default SSL port (465) for SMTP protocol.
|