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

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

Thank you

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

Replies are listed 'Best First'.
Re^5: Send latin1 email with MIME::Lite
by zwon (Abbot) on Jan 28, 2009 at 19:59 UTC

    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