in reply to Re^2: Send latin1 email with MIME::Lite
in thread Send latin1 email with MIME::Lite

Try Encode::MIME::Header instead of Mail::Message::Field::Full

  • Comment on Re^3: Send latin1 email with MIME::Lite

Replies are listed 'Best First'.
Re^4: Send latin1 email with MIME::Lite
by way (Sexton) on Jan 28, 2009 at 19:24 UTC

    Thank, but i'll try to find the solution with the another method becouse i won't include many modules.

    Thank you

      Then you can just extract encoding function from this module. Here's the example that encodes header into Base64:

      use strict; use warnings; use utf8; use Encode; use MIME::Base64; sub encode_header { '=?ISO-8859-1?=' . encode_base64( encode('iso-8859-1', shift), '' +) . '?='; } print encode_header("!Hey‘ This is a αινσϊδλοφόρΡ mail!");

      Note, that Encode is a standard module, and you need MIME::Base64 to use Mail::Message::Field::Full anyway.

        Yes, thank, but finally I used a tiny module that comes with MIME::Lite

        use MIME::Words qw(encode_mimewords); print encode_mimewords("Me and \xABFran\xE7ois\xBB in town");

        thank guys