Re: mail() with attachments
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: mail() with attachments

From: Manuel Lemos <mlemos@acm.org>
Date: Tue Oct 04 2005 - 04:59:06 CEST

Hello,

on 10/02/2005 07:21 AM Toby Inkster said the following:
> Of course I could generate a unique boundary, use the base64_encode()
> function and do all the MIME-stuff myself, but I am trying to avoid
> re-inventing the wheel.
>
> Anyone know of a *good* PHP function for sending an e-mail with multiple
> attachments?

You may want to try this popular MIME message class. It lets you compose
messages with an arbitrary number of attachements, it lets you add an
attachement either from a file or from a string of data, it can
automatically detect the attachment file MIME type from the file name
extension, etc..

http://www.phpclasses.org/mimemessage

-- 
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Received on Tue Oct 18 02:31:13 2005