Help for this page
my $mailprog = '/usr/lib/sendmail'; ... print MAIL"The file $dirContent is attached.\n"; } close (MAIL);