in reply to Re^6: Encoding for MIME::Lite?
in thread Encoding for MIME::Lite?

I haven't tried that for a while, but I don't remember there being a problem with using multipart/alternative with quoted printable encoding.

That said, why don't you try dropping the encoding completely - MIME::Lite is very good at handling this stuff automatically.

So try this:

$msg = MIME::Lite->new( To => $email_to, From => $email_of_sender, Subject => $email_subject, Type => 'multipart/alternative', ); $msg->attach( Type => 'TEXT', Data => $email_body ); $msg->attach( Type => 'text/html', Data => $email_html ); $msg->send;

Clint

Replies are listed 'Best First'.
Re^8: Encoding for MIME::Lite?
by Opally (Initiate) on Aug 23, 2007 at 20:45 UTC
    I got it solved!!! (apologies if this is duplicate post, not familiar with the structure of this board.)

    I had to move the Encode statement into the attach part, out of the main header.
    $msg = MIME::Lite->new( To =>$form_data{'email'}, From =>$email_of_admin, Subject =>$email_subject, Type =>'multipart/alternative' ); $msg->attach(Type => 'text/plain', Data => $email_body ); $msg->attach(Type => 'text/html', Encoding => 'quoted-printable', Data => $email_html ); $msg->send;


    muchas gracias!!!

    --Opally