PHP class handles multiple attachment e-mails using html and the mime mail standard



PHP Attachment Mailer Class ver. 1.21

updated: 2009-09-11
I wrote this class to integrate more functionality for classes like Access_user or DB_cart and other's using the PHP mail function. But the class can be also used in every web application where the standard text mail is not enough and where attachments are needed. The class has no upload function, use for some file upload functionality the Easy Upload Class. Find in the current class functions like: an e-mail address check (using regular expressions and testing the address against a MX record), All header rows are filtered to prevent spamming via web mail forms, the class can handle multiple attachment. Since version 1.2 is html mail with inline attachments supported.

PHP Script Download
You need to login or register to download this class script.

Downloaded 5627 times

Rating: script rated with stars
 

Last changes and updates:

Version 1.21
We added some example file that upload multiple files and send the files as multiple attchments in the generated mail message. Check the forum for the tutorial.

Version 1.20
Since this version the class is changed into a full featured html mailer class incl. html mail + (inline) attachments, alternative text format, inline attachments mixed with external attachments and much more. Most methods are changed and the structure how an objects is defined is updated, too. You need to update formerly mail scripts, check the updated documentation.

Version 1.03
I noticed there is sometimes a problem with the mail function and the return path. Some mail servers need a valid notation if the mail can't be deliverd. I added the "-f" option to the process_mail method.