system "mailx -s \"Testing Report\" name@company.com < output.txt"; #### open MAILX, "| mailx -s \"Testing Report\" name@company.com";