[Perl] Sending Mail - Hebrew

Pinkhas Nisanov nisanov at netvision.net.il
Mon Feb 4 14:25:51 PST 2002


It looks like HTML character entity.
May be it will work if you will prepare
html text and send with :
$msg->attr("content-type"         => "text/html");
$msg->attr("content-type.charset" => "iso-8859-8-i");

Pinkhas Nisanov

----- Original Message -----
From: "Roy Rubin" <perlmail at irubin.com>
To: <perl at perl.org.il>
Sent: Tuesday, February 05, 2002 12:11 AM
Subject: RE: [Perl] Sending Mail - Hebrew


> There is really no error. The result of the email is not Hebrew characters
> (as intended), it looks something like this:
>
> &#1512;&#1493;&#1506;&#1497
>
> Thanks.
>
> Roy
> roy at irubin.com
>
>
>
>
> > -----Original Message-----
> > From: perl-admin at perl.org.il [mailto:perl-admin at perl.org.il]On Behalf Of
> > Pinkhas Nisanov
> > Sent: Monday, February 04, 2002 1:53 PM
> > To: perl at perl.org.il
> > Subject: Re: [Perl] Sending Mail - Hebrew
> >
> >
> > Hi,
> >
> > What exactly the problem?
> > If you have some error message it could help.
> > There is some problem in headers produced
> > by MIME::Lite. Two headers:
> > "Content-Disposition" and "Content-Transfer-Encoding"
> > usualy used for attachments, not for top level MIME
> > entity.
> > In "Internet E-mail Protocols" book I found some interesting
> > sentence: "There are currently no places where 'binary'
> > encoding is valid in a top level MIME entity". May be
> > this is a problem.
> >
> > Pinkhas Nisanov
> >
> >
> > ----- Original Message -----
> > From: "Roy Rubin" <perlmail at irubin.com>
> > To: <perl at perl.org.il>
> > Sent: Monday, February 04, 2002 10:27 PM
> > Subject: [Perl] Sending Mail - Hebrew
> >
> >
> > > Hello,
> > >
> > > I am using Mime::Lite to send emails and have stumbled across a
problem
> > > trying to send emails in Hebrew. The problem, I believe is in
malformed
> > > headers that I am sending.
> > >
> > > I have included below, a valid header (from outlook) and an
> > invalid header
> > > as I produced using Mime::Lite.
> > >
> > > What am I doing wrong ?
> > >
> > > <valid email header - produced by outlook>
> > >
> > > Return-Path: <eliko5 at bezeqint.net>
> > > Delivered-To: irubin-com-roee at irubin.com
> > > Received: (qmail 23192 invoked by uid 110); 29 Jan 2002 05:08:10 -0000
> > > Delivered-To: irubin-com-roy at irubin.com
> > > Received: (qmail 23190 invoked from network); 29 Jan 2002
05:08:10 -0000
> > > Received: from m2.bezeqint.net (192.115.106.47)
> > >   by ww11.hostica.com with SMTP; 29 Jan 2002 05:08:10 -0000
> > > Received: from e1r3p5 (bzq-128-8.pop.bezeqint.net [212.179.128.8])
> > > by m2.bezeqint.net (Mirapoint)
> > > with SMTP id ARW52435;
> > > Tue, 29 Jan 2002 07:08:06 +0200 (IST)
> > > Message-ID: <000a01c1a883$046e3c80$0880b3d4 at e1r3p5>
> > > From: "eliko" <eliko5 at bezeqint.net>
> > > To: <roy at irubin.com>
> > > Subject: =?iso-8859-8-i?B?UmU6IOXl4e7g8ej4?=
> > > Date: Tue, 29 Jan 2002 07:08:39 +0200
> > > MIME-Version: 1.0
> > > Content-Type: text/plain;
> > > charset="iso-8859-8-i"
> > > Content-Transfer-Encoding: 8bit
> > > X-Priority: 3
> > > X-MSMail-Priority: Normal
> > > X-Mailer: Microsoft Outlook Express 4.72.3110.37
> > > X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.37
> > >
> > > </valid email header - produced by outlook>
> > >
> > >
> > > <invalid email header produced by MIME::Lite>
> > >
> > > Return-Path: <anonymous at hostica.com>
> > > Delivered-To: irubin-com-roee at irubin.com
> > > Received: (qmail 6635 invoked by uid 10122); 31 Jan 2002
16:37:08 -0000
> > > Message-ID: <20020131163708.6634.qmail at hostica.com>
> > > Content-Disposition: inline
> > > Content-Transfer-Encoding: binary
> > > Content-Type: text/plain; charset="iso-8859-8-i"
> > > MIME-Version: 1.0
> > > X-Mailer: MIME::Lite 2.117  (F2.6; B2.12; Q2.03)
> > > Date: Thu, 31 Jan 2002 16:37:08 UT
> > > From: test at irubin.com
> > > To: roee at irubin.com
> > > Subject: &#1512;&#1493;&#1506;&#1497;
> > >
> > > </invalid email header produced by MIME::Lite>
> > >
> > > The invalid header is produced by the following code:
> > >
> > > $msg = MIME::Lite->new(
> > > From    =>'test at irubin.com',
> > > To =>'roy at irubin.com',
> > > Subject =>$co->param('Subject'),
> > > Type    =>'TEXT',
> > > Data    =>$co->param('Message')
> > > );
> > >
> > > $msg->attr("content-type"         => "text/plain");
> > > $msg->attr("content-type.charset" => "iso-8859-8-i");
> > > $msg->quiet();
> > > $msg->send();
> > >
> > > Any help or ideas will be appreciated.
> > >
> > >
> > > Roy Rubin
> > > roy at irubin.com
> > >
> > > _______________________________________________
> > > Perl mailing list
> > > Perl at perl.org.il
> > > http://www.perl.org.il/cgi/listinfo/perl
> >
> > _______________________________________________
> > Perl mailing list
> > Perl at perl.org.il
> > http://www.perl.org.il/cgi/listinfo/perl
> >
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://www.perl.org.il/cgi/listinfo/perl




More information about the Perl mailing list