PHP Classes

Template based Email sending: Send HTML messages using templates

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 4,067 All time: 764 This week: 560Up
Version License Categories
templatemail 1.0.0GNU General Publi...Email, Templates


This class can be used to send HTML messages.

It uses a configurable template file to define the HTML message body.

The class replaces template marks with the respective argument values and sends the message.

The sender name, sender e-mail address, recipient address and the message subject are required parameters.

Picture of Shoeb
Name: Shoeb <contact>
Classes: 3 packages by
Country: United Arab Emirates United Arab Emirates
Age: 41
All time rank: 3421 in United Arab Emirates United Arab Emirates
Week rank: 307 Up1 in United Arab Emirates United Arab Emirates Equal

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example usage
Plain text file class.tempmail.php Class This is the main class file for the sending mail template.
Accessible without login Plain text file exampletemplate.htm Data Example HTML tempalte file 1KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHPMailer Download .zip .tar.gz This is the mail sending script. We use this to send emails but the templates are formed by our class. If you are familiar with this class then you might also know that $mail->Body becomes so bulky to track if it is in code. Required
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:764
This week:560Up
 User Ratings  
 All time