Help for this page

Select Code to Download


  1. or download this
    my $cmd = 'mail -s "Test" testmail@server.com, < DailyReport_$d.txt';
    print "Running [$cmd]\n";
    system($cmd) == 0
        or warn "Couldn't run [$cmd]: $! / $?";
    
  2. or download this
    my $cmd = "mail -s 'Test' 'testmail\@server.com' < 'DailyReport_$d.txt
    +'";