MIME::Lite doesn't really make things any easier in this case. I keep meaning to use
MIME::Entity, but sometimes I forget and use MIME::Lite for no good reason. Though the one 'advantage' of MIME::Lite is that it will try to guess at the type of attachment if that option is set to 'AUTO'.