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.
In reply to Re^3: MIME::Lite and Multipart
by jakobi
in thread MIME::Lite and Multipart
by Analog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |