Back to product page

SmtpSecurityEnum Enumeration


These constant define if SSL encryption is used in the connection. You should set wodSmtp.Security, property with these values.

Remarks

SecurityNone means that SSL will not be used. This is default value, to preserve compatibility with older versions of wodSmtp.
SecurityAllowed will allow wodSmtp to issue STARTTLS command to create secured connection, but is not required. If SSL negotiation fails, message will be delivered through insecure connection.
SecurityRequired means that wodSmtp must create secured connection using STARTTLS command before he tries to deliver the message.
SecurityImplicit will create internal SSL 'wrapper' over wodSmtp. wodSmtp will establish SSL connection prior to exchanging any data between the server and itself. STARTTLS command is not used anymore because connection is already secured. Usually, servers using this type of SSL security are listening on port 465.

Possible values for SmtpSecurityEnum:

Constant Value Description
SecurityNone 0 No security required.
SecurityAllowed 1 Security allowed, but not required.
SecurityRequired 2 Security is required.
SecurityImplicit 3 Implicit security through SSL wrapper.

Platforms

Windows