Login   Register  
PHP Classes
elePHPant
Icontem

fmail: Send email messages with content read from files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-07-08 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 523 All time: 5,114 This week: 1,788Up
Version License PHP version Categories  
fmail 1.0MIT/X Consortium License4.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 Shull
Name: Sam Shull <contact>
Classes: 9 packages by
Country: United States United States
Age: 38
All time rank: 37242 in United States United States
Week rank: 578 Down60 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:523All time:5,114
 This week:0This week:1,788Up