http://www.perlmonks.org?node_id=177416


in reply to Some suggestions on coding style - a chance to critique

  1. Use Mail::Sender or Mail::Sendmail rather than piping to sendmail(1).
  2. Use the services of Template Toolkit or Text::Template; this way, you can swap both your HTML as well as your mail's text out of the script.
____________
Makeshifts last the longest.