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


Release Notes: This release adds support for connecting to the SMTP server via SOCKS servers or HTTP proxy servers.


Release Notes: 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.


Release Notes: 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.


Release Notes: 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.


Release Notes: 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.