[thelist] [PHP] emailing an attachment

Howard Cheng howcheng at ix.netcom.com
Tue Sep 10 17:16:00 CDT 2002


Excellent. Thanks very much!

At 05:50 PM 9/10/2002 -0400, Greg Schnippel wrote:

> >Does anyone know how to use PHP to attach a file to an email? I couldn't
> >find anything in the online docs. Perhaps I'm looking in the wrong place.
>
>You need to use a MIME extension class to get this to work
>right.
>
>I've pasted one I use below. I didn't find any credit information
>but I believe it came from the Wrox Programming PHP book.
>
>This code should help you get it working. $filehandle is a pointer
>to a file, either read from the drive or uploaded from a user.

::::::::::::::::::::::::::::::::::
Howard Cheng
http://www.howcheng.com/ <-- NEW!
howcheng at ix dot netcom dot com
AIM: bennyphoebe
ICQ: 47319315




More information about the thelist mailing list