in reply to Re^2: MIME::Lite and Multipart
in thread MIME::Lite and Multipart
I still don't understand why the "Type" can't be added by itself.
Just a note before forwarding you to perldoc, the module source code and zwon for further study:
you correctly wrote in the opener: $message->replace(Type=>'multipart/mixed');, and this indeed **works** and changes the mail structure you set with the Type=>... assignment during ->new/->build.
Without an explicite Type, Dumper shows a non-MIME text/plain message. Adding mime parts seems to turn the original body (that you never defined in the opener or Re^4) into our undefined problem mime part, while also turning the Type to multipart/mixed. If my assumption is correct, just setting Data=>"" (and never setting a Type at all) before adding attachments should also avoid the undef bugs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: MIME::Lite and Multipart
by zwon (Abbot) on Sep 29, 2009 at 22:28 UTC | |
by jakobi (Pilgrim) on Sep 29, 2009 at 23:01 UTC |