[Perl] Sending Mail - Hebrew

Pinkhas Nisanov nisanov at netvision.net.il
Mon Feb 4 13:53:13 PST 2002


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




More information about the Perl mailing list