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


in reply to How to send mail from Perl/Tk Program?

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.