mail() with attachments

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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

Using PHP 4.3.something.

I've been looking at this:
and this:

Anyone used either? Any recommendations?

Toby A Inkster BSc (Hons) ARCS
Contact Me  ~

Re: mail() with attachments

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Re: mail() with attachments


on 10/02/2005 07:21 AM Toby Inkster said the following:
Quoted text here. Click to load it

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..


Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP

PHP Reviews - Reviews of PHP books and other products

Metastorage - Data object relational mapping layer generator

Site Timeline