[thelist] Perl - Mime Questions
Roy Rubin
webdesign1 at irubin.com
Thu Jan 31 22:18:00 CST 2002
Hello,
I am using Mime::Lite to send emails and have stumbled across a problem
trying to send emails in a foreign language. I attempted to match a valid
Mime email header with the output of the MIME:Lite object. To bettet
explain, please see the snippets below:
<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: רועי
</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-Win32-Users mailing list
Perl-Win32-Users at listserv.ActiveState.com
To unsubscribe:
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
More information about the thelist
mailing list