PHP Classes

PHP Mail Class: Compose and send email using mail function or SMTP

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 395 All time: 6,581 This week: 284Up
Version License PHP version Categories
php-mail-class 1.0.0MIT/X Consortium ...5Email, Networking, PHP 5


This class can compose and send email using mail function or SMTP.

It can compose a message by setting several types of parameters like the sender and recepient names and addresses, the message subject and body in text or HTML formats, etc..

The class can send the message either using the PHP mail() function or connecting to a SMTP server to relay the message.


password authentication email
I want email to send to users after authentication

EMAIL with PDF Attachment
I want to send a invoice PDF file via email

Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq is available for providing paid consulting. Contact Muhammad Umer Farooq .
Classes: 51 packages by
Country: Pakistan Pakistan
Age: 21
All time rank: 86611 in Pakistan Pakistan
Week rank: 231 Up5 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 5x


PHP MAil Class

It can currently.

  • Send mail over php
  • Send mail over SMTP
  Files folder image Files  
File Role Description
Files folder imageClasses (1 file)
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENCE Lic. License text
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  Classes  
File Role Description
  Plain text file Mail.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,581
This week:284Up