This is a discussion on "looking for php email form w/image upload" within the PHP Forum section. This forum, and the thread "looking for php email form w/image upload are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
looking for php email form w/image upload
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I currently use email forms for various reasons. I have one customer that would like to have an email form that users would fill out, but would additionally upload an image.
So that when the user hits "submit" it takes all that information and inserts it into an email and sends it off to the owner. The owner receives the text based email with an image attachment. As I've said I've used email forms and they're great, but this requirement of having the option of attaching an image is a little beyond me. can anyone help me out here? how do I go about attaching an image as an attachment to the email? Thanks, josh |
|
|
|
|||
|
Re: looking for php email form w/image upload
Ive been thinking about this.
I dont know if theres a way to upload an image and send it as an email attachment.... if anyone does know how to do this let me know. But.... You could upload the image to your server, then send an html email with the image in the body of the message. That sounds like the best way to me..... if this is what you decide to do, and your having problems with it, i can write you a quick script that should work with a little modification. Let me know |
|
|||
|
Re: looking for php email form w/image upload
as accurex said, I've always uploaded the file to a temporary directory then sent it the file as an attachment, then i use the unlink() function to delete the file from the server.
Here's the upload function that i use to upload images, you can play around with it and see if you can get it to attach to an email without having to upload it to the server.
|
![]() |
| Tags |
| attachment, email attachment, email form, form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP email form not sending email | Kurt | PHP Forum | 1 | Oct 12th, 2007 04:26 |
| Example of Image Upload | hanusoft | Classic ASP | 1 | Sep 20th, 2007 10:39 |
| upload image | webdeveloper | Classic ASP | 0 | Aug 3rd, 2007 07:54 |
| Form submits to email via php, but email is blank!!?? | DH1234 | PHP Forum | 2 | Jun 18th, 2007 10:42 |
| Upload File to Server Via Email | Kenny Fix | Classic ASP | 0 | Nov 6th, 2006 17:10 |