Constant |
Description |
SMTP_OPTION_NONE |
No additional options are specified when establishing a
connection with the server. A standard, non-secure connection
will be used. |
SMTP_OPTION_EXTENDED |
Extended SMTP commands should be used if possible. This
option enables features such as authentication and delivery
status notification. If this option is not specified, the
library will not attempt to use any extended features. This
option is automatically enabled if a username and password are
specified, or if the connection is
established on port 587, because submitting messages for
delivery using this port typically requires client
authentication. |
SMTP_OPTION_TUNNEL |
This option specifies that a tunneled TCP connection and/or
port-forwarding is being used to establish the connection to
the server. This changes the behavior of the client with
regards to internal checks of the destination IP address and
remote port number, default capability selection and how the
connection is established. |
SMTP_OPTION_TRUSTEDSITE |
This option specifies the server is trusted. The
server certificate will not be validated and the connection
will always be permitted. This option only affects connections
using either the SSL or TLS protocols. |
SMTP_OPTION_SECURE |
This option specifies that a secure connection should be
established with the server and requires that the server support
either the SSL or TLS protocol. The client will initiate the
secure session using the STARTTLS command. |
SMTP_OPTION_SECURE_IMPLICIT |
This option specifies the client should attempt to
establish a secure connection with the server. The server must
support secure connections using either the SSL or TLS
protocol, and the secure session must be negotiated immediately
after the connection has been established. |