🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #52562

Wide character in print at Mail/Mailer/rfc822.pm line 23.

#52562
From: adamrw
Date: Wed, 23 Oct 2013 13:04
30 lines
2285 bytes
Witam
Napisałem skrypt, który wyciąga dane z bazy i wysyła na mail. Wykonuje się wszystko OK. Mail dociera, polskie znaki są, ale wyświetla na konsolę błąd 
Wide character in print at /usr/local/lib/perl5/site_perl/5.10.1/Mail/Mailer/rfc822.pm line 23.

Ma ktoś pomysł czym to jest spowodowane ?
W skrócie mój skrypt wygląda tak:
use DBI;
use strict;
use MIME::Base64;
use POSIX;
use Mail::Send;
use utf8;

my $dbh = DBI->connect( ... );
my $query = qq{ ... };
my $sth = $dbh->prepare($query) or exit(0);
$sth->execute or die "Can't execute the query: $sth->errstr";

my $html = " { Tu generuję treść maila w html na podstawie danych z bazy } ";

my $msg = Mail::Send->new();
$msg->to('Adresat <mail@domena.com>');
$msg->subject('Temat');
$msg->add('Content-Type', 'text/html; charset=UTF-8');

my $fh = $msg->open;
print $fh $html;
$fh->close or die "couldn't send whole message: $!\n";

Pozdrawiam
Technical Details
Message-ID: <35a14dee-6fdc-42aa-986f-93d5481bdf32@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin.stu.neva.ru!feeder.erje.net!us.feeder.erje.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!i2no29226782qav.0!news-out.google.com!rn2ni119355pbc.1!nntp.google.com!i2no29226766qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Received: by 10.182.47.168 with SMTP id e8mr603016obn.12.1382533447714;        Wed, 23 Oct 2013 06:04:07 -0700 (PDT)
X-Received: by 10.49.51.197 with SMTP id m5mr33778qeo.5.1382533447454; Wed, 23 Oct 2013 06:04:07 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin.stu.neva.ru!feeder.erje.net!us.feeder.erje.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!i2no29226782qav.0!news-out.google.com!rn2ni119355pbc.1!nntp.google.com!i2no29226766qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.perl
Date: Wed, 23 Oct 2013 06:04:07 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.164.244.234; posting-account=WO9VQwoAAAC7MLNKjZPkqXxXLYiM-gFv
NNTP-Posting-Host: 188.164.244.234
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <35a14dee-6fdc-42aa-986f-93d5481bdf32@googlegroups.com>
Subject: Wide character in print at Mail/Mailer/rfc822.pm line 23.
From: adamrw <adam.warnowski@gmail.com>
Injection-Date: Wed, 23 Oct 2013 13:04:07 +0000
X-Received-Bytes: 2089
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit