mail() with attachments

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Toby Inkster

    #1

    mail() with attachments

    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?

    Using PHP 4.3.something.

    I've been looking at this:

    and this:
    PHP is the perfect programming language for web application backends. Use Astec's top PHP development services to create your web application.


    Anyone used either? Any recommendations ?

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact

  • R. Rajesh Jeba Anbiah

    #2
    Re: mail() with attachments

    Toby Inkster wrote:[color=blue]
    > 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.[/color]
    <snip>



    --
    <?php echo 'Just another PHP saint'; ?>
    Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

    Comment

    • Manuel Lemos

      #3
      Re: mail() with attachments

      Hello,

      on 10/02/2005 07:21 AM Toby Inkster said the following:[color=blue]
      > 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?[/color]

      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

      Comment

      Working...