Re: send attachment with form

by "Jim" <jimb(at)aci.on.ca>

 Date:  Thu, 18 Oct 2001 06:03:38 -0400
 To:  "jim barchuk" <jb(at)jbarchuk.com>,
<hwg-basics(at)hwg.org>
 Cc:  "Blue Tapp" <blue(at)bluesarthouse.com>
 References:  jbarchuk
  todo: View Thread, Original
I have to go to my real job now but I will try that when I get home.

Thanks for the input!

Jim
----- Original Message -----
From: "jim barchuk" <jb(at)jbarchuk.com>
To: <hwg-basics(at)hwg.org>
Cc: "Blue Tapp" <blue(at)bluesarthouse.com>
Sent: Wednesday, October 17, 2001 10:22 PM
Subject: Re: send attachment with form


> Hello Blue!
>
> > I can fill out the form from my page, choose to add a picture and browse
> > locally to find it and then click then add it. I submit the form and I
get
> > the results emailed to me fine but the attachment comes through as
garbled
> > text.
>
> Have you tried attaching a plain text file through your script? I'll bet
> that works just fine.
>
> The basic malfunction there is that email is 'plain text/7-bit' and an
> image is 'binary/8-bit.' You need to encode the binary file down to plain
> text so the mail servers don't mangle it along the way.
>
> Here's a page that explains it very well:
>
http://www.1perlstreet.com/xq/ASP/txtCodeId.196/lngWId.6/qx/vb/scripts/ShowC
ode.htm
>
> That page is all about Perl but the same theories are applicable to any
> language.
>
> Have a :) day!
>
> jb
>
> --
> jim barchuk
> jb(at)jbarchuk.com
>
>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA