Render parts of your mail with Text::MicroMason
You can install this module in the usual Perl fashion:
perl Build.PL
./Build
./Build test
./Build install
Copyright (c) 2009 by Mark V. Grimes. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The documentation is included in the module file. Once the module is installed, view the documentation with:
perldoc Email::MIME::Kit::Renderer::MicroMason
For convience, the documentaion is also reproduced in the README file.