PHP Classes

fmail: Send email messages with content read from files

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 537 All time: 5,568 This week: 254Up
Version License PHP version Categories
fmail 1.0MIT/X Consortium ...4.0Email, Files and Folders, Unix
Description Author

This package can be used to send email messages with content read from files or other types of streams.

It uses the command specified in the php.ini file to send the message.

The class pipes the headers and the body data retrieved from the given file or stream into the specified program.

Innovation Award
PHP Programming Innovation award nominee
July 2009
Number 9
If you need to send e-mail messages with attached files, you need to compose a MIME message made of multiple parts of data encoded as ASCII text.

However, if you need to attach large files, building the message data as single string may not be possible because it can exceed the configured PHP memory limit.

This class provides of more scalable solution that consists in reading the message data from files.

This way the encoded message can be read and passed to the sendmail program in small chunks at a time, so it uses very little memory and never exceeds the PHP memory limit.

Manuel Lemos
Picture of Sam S
Name: Sam S <contact>
Classes: 9 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 8x

  Files folder image Files  
File Role Description
Accessible without login Plain text file fmail.class.php Class Class file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:537
This week:0
All time:5,568
This week:254Up
For more information send a message to info at phpclasses dot org.