hwg-basics archives | Oct 2001 | new search | results | previous | next |
Re: send attachment with formby "Jim" <jimb(at)aci.on.ca> |
|
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