#args(script to be called, subject, message body) my @args = ('sendmail.pl', 'An error has occurred!', Error!'); system(@args) == 0 or die "system @args failed: $?";