PHP Classes

pg_email: Compose and send e-mail messages using template

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 853 All time: 4,088 This week: 206Up
Version License PHP version Categories
pg_email 4.0GNU General Publi...5.0Email, PHP 5, Templates


This class can be used to compose and send e-mail messages defined using template files.

It reads a template file to extract details about the messages to be sent such as the text or HTML contents, the recipient addresses, the subject, etc..

The class processes the template, eventually replacing template variables inserted in the text and HTML body data.

The processed messages can be sent immediately or saved to files. A log file may be updated as the messages are sent.

The class supports validating the e-mail addresses, sending attached files, and protection against header injection.

Picture of bobak
Name: bobak <contact>
Classes: 7 packages by
Country: France France
Age: ???
All time rank: 36923 in France France
Week rank: 259 Up6 in France France Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Files folder imagemodel_email (2 files)
Plain text file email.php Class Management of sending e-mail-based on file models.
Accessible without login Plain text file email_test.php Example Example

  Files folder image Files  /  model_email  
File Role Description
  Accessible without login Plain text file test.mail Data Example : Model 1
  Accessible without login Plain text file test2.mail Data Example : Model 2

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,088
This week:206Up