PHP Classes

fmail: Send email messages with content read from files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 539 All time: 5,587 This week: 488Up
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: 34540 in United States United States
Week rank: 43 Up5 in United States United States Up
Innovation award
Innovation award
Nominee: 8x

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:539
This week:0
All time:5,587
This week:488Up