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: 539 This week: 1All time: 5,586 This week: 560Up
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
Age: 49
All time rank: 34440 in United States United States
Week rank: 416 Down46 in United States United States Down
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:539
This week:1
All time:5,586
This week:560Up