SMTP client class is a PHP class that connects to a mail server to send messages. It can relay message delivery to a defined server or directly deliver messages to a recipient's server for urgent message delivery. It supports secure connections with SSL or starting TLS after the connection is established, connection timeouts, authentication using PHP SASL class (PLAIN, LOGIN, CRAM-MD5, NTLM), POP3 before SMTP delivery authentication, and takes advantage of the SMTP PIPELINING extension to buffer SMTP commands, providing much faster queueing of messages when delivering to a large number of recipients (bulk mail).
| Tags | Software Development Libraries php classes Communications Email Email Clients (MUA) |
|---|---|
| Licenses | BSD Original |
| Operating Systems | OS Independent |
| Implementation | PHP |
Recent releases


Changes: This release added support to start TLS encryption protocol after the connection is started, so it can work for sending messages via the Hotmail SMTP server. Documentation of the class reference manual was added.


Changes: Support was added for sending messages to SMTP servers that require secure connections using SSL, like Gmail. The class now ignores the error when the server disconnects without responding to the final QUIT command.


Changes: The SASL client library class is now used to perform authentication with all the mechanisms supported by that library, such as PLAIN, LOGIN, CRAM-MD5, NTLM (Windows or Linux/Unix with Samba), and others.


Changes: A bug where the SMTP authentication step was skipped if the first authentication method declared by the server was not yet supported by the class was fixed.


Changes: Support was added for authenticating against a POP3 server before relaying a message to the SMTP server.
Debuggers for bash, ksh and, zsh scripts loosely modeled on gdb command syntax.
Fuzzy sets, intuitionistic sets, numbers, logic, and linguistic variables.