Email-MIME-CreateHTML
view release on metacpan or search on metacpan
t/UTF-8_html.t view on Meta::CPAN
use MIME::Words qw(encode_mimeword);
use Test::More;
my $builder = Test::More->builder;
binmode $builder->output, ":encoding(UTF-8)";
binmode $builder->failure_output, ":encoding(UTF-8)";
binmode $builder->todo_output, ":encoding(UTF-8)";
my $response = LWP::UserAgent->new->get("file://$Bin/data/UTF-8.html");
my $body = $response->decoded_content;
my $from = generate_address('Föö', 'test@foo.example');
my $to = generate_address('Bäz', 'test@baz.example');
my $subject = encode_mimeword(encode_utf8('Sübject'), 'Q', 'UTF-8');
my $mail = Email::MIME->create_html(
header => [
From => $from->format,
To => $to->format,
( run in 0.425 second using v1.01-cache-2.11-cpan-26ccb49234f )