Projects / SMTP client class

SMTP client class

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).

Operating Systems

Recent releases

  •  04 Feb 2011 07:08

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

    •  13 Apr 2009 07:30

      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.

      •  12 Jun 2006 08:55

        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.

        •  05 Oct 2004 16:20

          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.

          •  10 Aug 2004 23:47

            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.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.