Thread Umlaute in Mail Subject: UTF8 Subjct mit MIME::Lite (8 answers)
Opened by Gast at 2006-12-13 12:40

renee
 2006-12-13 14:49
#37419 #37419
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Also auf Deinen Code bezogen:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use Encode;

$logger->debug("Subject is UTF8:", utf8::is_utf8($p{subject}) );
$logger->debug("Body is UTF8:", utf8::is_utf8($p{body}));

$p{subject} = decode_utf8($p{subject});
$p{body] = decode_utf8($p{body});

my %mail_p = (
From => $p{from},
To => $p{to},
Subject => $p{subject},
Data => $p{body},
);
my $mime = MIME::Lite->new(%mail_p);
$mime->attr('content-type.charset' => 'UTF8';);
$mime->send;
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Umlaute in Mail Subject: UTF8 Subjct mit MIME::Lite