You could try looking at both
Mail::Internet and
Mail::Mailer.
The latter allows sending mail using different methods, may be
what you want. The former allows composing and manipulating
mail messages, including parsing from a string, so you could
parse your existing string to extract the corresponding headers.
Although if you are building the message in the first place,
you may already have them handy.
--ZZamboni