Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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]
NodeReaper recites The Raven over the P.A. again

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2018-05-22 22:10 GMT
Find Nodes?
    Voting Booth?