sendmail is not restricted to cgi scripts. I use it regularly in Unix daemons to let me know the state of various end of day processing.

In reply to Re: How to send mail from Perl/Tk Program? by apl
in thread How to send mail from Perl/Tk Program? by mikasue

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":