Re: send attachment with form
by "Jim" <jimb(at)aci.on.ca>
|
Date: |
Thu, 18 Oct 2001 20:53:05 -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
|
|
Thanks JB,
If I attach plain text it does indeed come through readable. I looked at the
link and it is very descriptive as to the problem.
I notice that both the web page and the perl script both have the content
tag.
Html - META http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"
Perl script - print "Content-type: text/html\n\n";
I am hoping I can just change these to something to make the images come
through. From the linbk it looks like I would have to install the Mime::Lite
module on the server hosting my website but that is not possible.
Thanks for the help!
Jim B <coincidence I am sure>
----- 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