Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to send nicely formatted emails in Perl?

by dsheroh (Parson)
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992459]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-12-25 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls