Re: PHP mailing attachments (form processing?)

by "Gary Krockover" <gary(at)garykrockover.com>

 Date:  Thu, 12 Dec 2002 21:09:22 -0600
 To:  "hwg-techniques" <hwg-techniques(at)hwg.org>
 References:  upwebmaestro
  todo: View Thread, Original

Perhaps the answer is in here?

http://www.php.net/manual/en/ref.mail.php

GK


> 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