Connecting to SMTP Server

Connecting SSL Enabled SMTP Server

The following properties need to be set when connecting with an SMTP server with SSL support.

  • SecurityOptions
  • Port

In the examples below we show how to:

  1. Set a username.
  2. Set a password.
  3. Set the port.
  4. Set security option.

The following code snippet shows you how to connect SSL enabled SMTP server.