The same "template" modules that are often used to format web-pages can also be used to format e-mail content, and many of the previously-mentioned mail packages support this notion directly, so that your Perl programming does not have to be changed if every time the e-mails do.