Class SMTPClient() Professional
Class function of the SMTPClient class.
Instances of the SMTPClient class are used to access an SMTP server via the Simple Mail Transfer Protocol (SMTP). This communication protocol is used for sending e-mail messages to a Mail Transport Agent (MTA). An SMTPClient connects via the TCP/IP network protocol to an e-mail server and then negotiates the parameters for sending messages. This so-called SMTP handshake is performed when the method :connect() is executed.
By default, e-mails are sent unencrypted as human-readable data. However, the SMTPClient class also supports establishing connections where all communication is encrypted via a Secure Socket Layer (SSL). See the method :new() for more details on setting up secure connections.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.