in reply to Send latin1 email with MIME::Lite

Mail::Message::Field::Full
Warning: Illegal character in field name $name

A new field is being created which does contain characters not permitted by the RFCs. Using this field in messages may break other e-mail clients or transfer agents, and therefore mutulate or extinguish your message.

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

    Ok, I see, but if I do something like this:

    my $msg = MIME::Lite->new( From => 'test@test.com', To => 'test@test.com', Subject => Mail::Message::Field::Full->new(charset => 'iso-8859-1 +')->encode('!Hey‘ This is a αινσϊδλοφόρΡ mail!'), Type => 'text/html', Encoding => 'quoted-printable' Data => q{ <h1>αινσϊδλοφόρΡ</h1> } ); $msg->attr('content-type.charset' => 'ISO-8859-1' ); $msg->send;

    still not work becouse encode the subject to us-ascii.

    And the main question, can MIME::Lite do this automatically?

    Thank you so much

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

        Thank you