php email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ben_albrechts
Forum Commoner
Posts: 33
Joined: Wed Oct 26, 2005 3:33 am

php email

Post 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?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Do you store who's uploaded what image and the comment in a database?

Mac
ben_albrechts
Forum Commoner
Posts: 33
Joined: Wed Oct 26, 2005 3:33 am

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Post Reply