Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: How to send nicely formatted emails in Perl?

by dsheroh (Prior)
on Sep 08, 2012 at 09:40 UTC ( #992459=note: print w/replies, xml ) Need Help??

in reply to How to send nicely formatted emails in Perl?

Template::Toolkit to insert the data into an HTML template, MIME::Lite to email the result. Easy-peasy.

For bonus points, you can create two separate templates, one for plain-text and the other for HTML, run both of them through TT, then use M::L to send it as a multipart email so that people who don't care about the color can see "just the facts, ma'am." Personally, I've never had issues with spam filters but, if you do, sending as multipart instead of HTML-only has the additional benefit of appearing to make the message look less spammy to most filter rulesets.

  • Comment on Re: How to send nicely formatted emails in Perl?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992459]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2018-03-20 00:45 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (247 votes). Check out past polls.