faqts : Computers : Programming : Languages : PHP : Common Problems : Email

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

34 of 82 people (41%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

I can upload files and send mails with PHP, how do I attach these files to my mail?

May 14th, 2000 15:02
Richard Heyes, Matt Gregory, Jeroen Keppens, unknown unknown,


Email attachments are really just part of the body of the email.  You 
must encode them with mime/uuencode or some other standard binary-ascii 
encoding standard and then send them in the body of the email.
---
There are various scripts/functions/classes available to help out with 
this, one of which is here:
http://phpclasses.upperdesign.com/browse.html/package/32
HTH
Richard Heyes