Page 1 of 1

php email

Posted: Sun Nov 13, 2005 1:11 pm
by ben_albrechts
My users can upload images through a form. The images are automatically saved in a folder called files.
How do i email the images to my emailadres then?

Further , there's also a form to post some comment , is there any way i can send that comment in the SAME email as the image?

Posted: Sun Nov 13, 2005 1:13 pm
by twigletmac
Do you store who's uploaded what image and the comment in a database?

Mac

Posted: Sun Nov 13, 2005 1:19 pm
by ben_albrechts
No it just goes into a folder.
As i only added the image-uploading a few days ago. Before I only had a form with comments and stuff , and I knew how to have it emailed to me. I didnt store them,just in my inbox. But now with the image-uploading i want the same thing , but dont know how to email the images

Posted: Sun Nov 13, 2005 1:23 pm
by twigletmac
You can send the image as an attachment with the comment when the form is filled in, you'll have to have a look at information on multipart e-mails:
http://www.zend.com/zend/spotlight/send ... lpart1.php

Alternatively, you could just send yourself a link to where the image is stored.

Mac