Re: PHP mailing attachments (form processing?)
by "Mike Taylor" <lonewolf(at)one.net>
|
Date: |
Thu, 12 Dec 2002 22:46:08 -0500 |
To: |
"hwg-techniques" <hwg-techniques(at)hwg.org> |
References: |
upwebmaestro |
|
todo: View
Thread,
Original
|
|
Have you tried this form in multiple browsers? Considering the historical
flakiness of the "file" input, I wonder if your problems are not so much
PHP-related as they are with the browser's support of the "file" form input.
You may be better served investigating that in conjunction with the
following page:
http://www.php.net/manual/en/features.file-upload.php
Perhaps an alternative would be to load the file into a temp directory long
enough to use that location as the attachment path instead of using the form
request, then delete the file after processing.
Mike
----- Original Message -----
From: "Nathan Lyle" <nathan(at)upwebmaestro.com>
To: "hwg-techniques" <hwg-techniques(at)hwg.org>
Sent: Thursday, December 12, 2002 9:24 PM
Subject: PHP mailing attachments (form processing?)
> I'm starting to go nuts on this one. I can get PHP to mail a form's
> contents, but I can't get it to send a picture (using the "file" input
> in a form). I've looked around at various mail scripts, but none of
> them accomplish this either.
>
> Either the mail gets through minus any attachment, or, in my initial
> version the email *said* there was an attachment but it gave an error
> message when trying to open it.
>
> What I've been trying to do is understand the MIME format... putting
> it together as the last variable passed in the mail() function.
>
> The best I can get is a string containing the local address of the
> image sent in the form.
>
> Has anyone had any experience with this? Please?
>
> ~ The U.P. Web Maestro (Nathan Lyle)
>
> E-Mail: nathan(at)upwebmaestro.com
> Online: www.upwebmaestro.com
> Phone: (906)485-4806
>
> "First we thought the PC was a calculator. Then we found out how to turn
numbers into letters with ASCII - and we thought it was a typewriter. Then
we discovered graphics, and we thought it was a television. With the World
Wide Web, we've realized it's a brochure." - Douglas Adams
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA