PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 932 All time: 3,842 This week: 146Up
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 is available for providing paid consulting. Contact Usman Didi Khamdani .
Classes: 9 packages by
Country: Indonesia Indonesia
Age: 44
All time rank: 3686 in Indonesia Indonesia
Week rank: 214 Up5 in Indonesia Indonesia Up
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 (7)  
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 (7)  /  log  
File Role Description
  Accessible without login Plain text file smtp-20120618.log Example log file example

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:932
This week:0
All time:3,842
This week:146Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:507