Here is the code i am trying to execute, but it is not working as expected.
. . if (-e -s $errorLog) { my @errorContents = read_file($errorLog); print "@errorContents"; sendMail("abc@xyz.com", "Error in build", @errorContents, "abc +@xyz.com"); }
In reply to send contents of a file in mail by noviceuser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |