as for your second question, it is very simple to send mail from a perl script by a piped open() call:
open "|mail -s \"subject\" user@foo.org. you will find a detailed description in
perldoc perlopentut.
--------------------------------
masses are the opiate for religion.