I am having a problem using the mailx mailer with system. The email body is not being sent in the email. The mailx command works fine from the command line, reading in the logfile as the message body. Unfortunatly using a mail PM like Mail::Mailer is not an option. Any suggesstions?
my $status=system("mailx -s \"$subject\" $address < /opt/autotree/auto +user/out/chk_cal_date.out") warn "Mailer exited with error: $?" unless $status == 0
In reply to Using system with mailx by cutter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |