PHP Classes
elePHPant
Icontem

Easy SMTP Mail Class: Send e-mail via mail function or SMTP server

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2012-11-19 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 827 This week: 1All time: 4,016 This week: 1,047Up
Version License PHP version Categories
easy-smtp-mail 1.0GNU General Publi...5.0Email, Networking, PHP 5
Description Author

This package can send e-mail via mail function or SMTP server.

It can compose a message by defining the body in text or HTML, the sender and recipients addresses, the subject and any files to be added as attachments.

The main class can send the composed message using the PHP mail() function or using a separate class for sending messages connecting to a given SMTP server.

SMTP server delivery supports authentication if necessary and secure connections.

Any error messages can be logged to a file.

Picture of Usman Didi Khamdani
Name: Usman Didi Khamdani <contact>
Classes: 8 packages by
Country: Indonesia Indonesia
Innovation award
Innovation award
Nominee: 2x

Details
This Easy SMTP Mail Class Package is useful to send email from our web server with mail() function and or directly trough smtp server like smtp.gmail.com. Enable for secure connection using SSL or TLS. Email can be sent with attachment file(s).

To send email trough smtp server with secure connection (SSL or TLS) we need the Open SSL PHP extension is loaded. Same as to send email with mail() function, we must have "a permission" to use that function.

To enable writing log file, we must create a "log" path within smtp.mail.class.php & easy.mail.class.php folder and ensure it has writable permission (777).

Note:
This class package, especially smtp.mail.class.php is inspired by and rewritten from PHPMailer (http://code.google.com/a/apache-extras.org/p/phpmailer/) and Simple SMTP Class for PHP (http://www.kidmoses.com/blog-article.php?bid=56)
  Files folder image Files  
File Role Description
Files folder imagelog (1 file)
Plain text file easy.mail.class.php Class this class is useful to send email with mail() function and or directly trough smtp server
Accessible without login Plain text file readme.txt Doc. readme text
Plain text file smtp.mail.class.php Class this class is useful to send email directly trough smtp server
Accessible without login Plain text file test1.php Example send email using mail() function with easy.mail.class.php
Accessible without login Plain text file test2.php Example send email directly trough smtp server with easy.mail.class.php
Accessible without login Plain text file test3.php Example send email directly trough smtp server with smtp.mail.class.php

  Files folder image Files  /  log  
File Role Description
  Accessible without login Plain text file smtp-20120618.log Example log file example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:827
This week:1
All time:4,016
This week:1,047Up