PHP Classes

SMTP E-mail sending class: Sends e-mail messages via SMTP protocol

Recommend this page to a friend!

  Author Author  
Name: Manuel Lemos <contact>
Classes: 38 packages by
Country: Portugal Portugal
Age: 48
All time rank: 1
Week rank: 7 Down1 in Portugal Portugal Equal

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
Class that connects to a SMTP mail server to send messages. It features:

- Relaying message delivery to a programmer defined SMTP server.
- Connect to the SMTP server via a SOCKS 4 or 5 server, or an HTTP proxy
- Programmer defined server address, server port, connection timeout, origin host address.
- Support for authentication methods PLAIN and LOGIN.
- Support for POP3 based authentication before delivery.
- Direct delivery to one or more recipients with e-mail addresses with the same domain, so you do not need to relay on a own or your ISP SMTP server.
- Setting sender and recipient address as a separate step from the sending the headers and the body of the message.
- Returns message delivery success.
- Detects extensions supported by the SMTP server.
- Takes advantage of the SMTP PIPELINING extension to buffer SMTP commands, therefore minimizing SMTP dialogue between the class and the server in order to provide a much faster queueing of messages to be delivered to a large amount of recipients ( bulk mail ).

* Note: this class is better used in conjunction with the class "MIME E-mail message composing and sending class". See in the Email group.

  Classes of Manuel Lemos  >  SMTP E-mail sending class  >  Download Download .zip .tar.gz  >  Support forum Support forum (86)  >  Blog Blog (2)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: SMTP E-mail sending class
Base name: smtpclass
Description: Sends e-mail messages via SMTP protocol
Version: 1.0.4
PHP version: 3
License: BSD License
All time users: 54020 users
All time rank: 3
Week users: 11 users
Week rank: 78 Down
  Groups   Screenshots Screenshots   Rate classes User ratings   Dependencies  
  Dependents   Trackback   Applications   Files Files  

Group folder image Email Email sending and receiving View top rated classes
Group folder image Networking Networking protocols, clients and servers View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file smtp.gif Screen Debug output of sending a message via the Gmail SMTP server


Send emails fast
I need to send many emails

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (89%) Good (86%) Good (80%) Good (81%) Sufficient (74%) - Sufficient (76%) 73
Month: Not enough user ratings

  Packages needed by this class  
Class DownloadWhy it is needed Dependency
Simple Authentication and Security Layer Download .zip .tar.gz When the SMTP server requires authentication the SASL package provides support for implementing authentication mechanisms like: PLAIN, LOGIN, CRAM-MD5, NTLM (Windows or Linux/Unix with Samba). Conditional
DNSResolver Download .zip .tar.gz If you use the direct delivery mode and are using Windows or any other platform on which the PHP function GetMXRR is not working, this class can provide an alternative Conditional

  Other classes that need this package  
Class Why it is needed Dependency
MIME E-mail message sending If it is used the SMTP message sub-class, this class is need to perform the actual SMTP delivery Conditional
pop3ml for connecting to a local/remote smtp server and sending e-mail messages Required

  Pages that reference this package  
En iyi 10 Php Sinifi!
PHP Mail via SMTP (Turkish)
Today I learned something like this might be needed. The development of the event are as follows: a customer who wants to use your own mail server, a citizen wishing to send bulk e-mail...
PHP: Enviar correos electronicos sin la funcion "mail()"
Esta clase PHP puede enviar correos electrónicos sin utilizar la función mail del php, envez de eso abre un socket e interactua directamente con el servidor de destino mediante el protocolo SMTP...
Sending email using PHP......
I think your smtp server is not configured properly...
Where I can find a good PHP library to send emails using SSL?
You can always use the PHP MIME message class and the SMTP driver which supports either SSL connections (needed to deliver via Gmail) or start TLS encryption (needed to deliver via Hotmail) if the servers support it...

Latest pages that reference packages Latest pages that reference packages

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Accessible without login Plain text file getmxrr.php Aux. GetMXRR function emulation need for direct delivery mode under Windows and other platforms without this function (needs DNS.php mentioned in the Related links section).
Plain text file smtp.php Class SMTP class file
Accessible without login HTML file smtp_class.html Doc. Documentation of the SMTP class
Accessible without login Plain text file test_smtp.php Example SMTP class test script
Accessible without login Plain text file test_smtp_prepare_data.php Test Test suite script to verify whether the function to prepare message body data is working correctly

Install with Composer Install with Composer - Download Download all files: smtpclass.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.