PHP Classes

Attachment Mailer class: Send e-mail messages with attachment files

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 10,228 All time: 129 This week: 74Up
Version License Categories
attach_mailer 1.0.0BSD LicenseEmail, Files and Folders


This class can be used to send e-mail messages with attachment files.

The class can send messages with multiple attachment files with automatic MIME type detection using the PHP MIME magic extension.

The class can validate an e-mail address using regular expressions and checking the existence of DNS MX record for the address domain.

The message headers are filtered to prevent abuse of spammers that insert line breaks in the middle or names and addresses that are used in the message.

Picture of Olaf Lederer
  Performance   Level  
Name: Olaf Lederer is available for providing paid consulting. Contact Olaf Lederer .
Classes: 11 packages by
Country: The Netherlands The Netherlands
Age: 53
All time rank: 41 in The Netherlands The Netherlands
Week rank: 276 Down7 in The Netherlands The Netherlands Down
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files  
File Role Description
Accessible without login Image file image.gif Data example attachment (image)
Plain text file attach_mailer_class.php Class the class file with all methods
Accessible without login Plain text file attach_mailer_example.php Example A simple example send a mail with attachments
Accessible without login HTML file documentation.html Doc. Docomentation of methods and examples
Accessible without login Plain text file upload_and_mail_example.php Appl. example form with upload function
Accessible without login Image file vcss.png Data second example (attachment) 15KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Easy PHP Upload Download .zip .tar.gz To upload attachments using forms. Conditional
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:129
This week:74Up
User Ratings User Comments (1)
 All time
Each & every class is good code & sample
16 years ago (Rajendran)