lpmartineau
Technical User
Hi everyone,
I am trying to run a mailx command to send an email (all internal, server does not talk to the outside world)
It is not passing the Variable in the subject of the email.
$line is a variable that works and I have tried to just print the variable and it works just fine.
I also tried:
any suggestions?
I am new to perl and been at this for hours now and starting to go nuts
Thank you
Luma
I am trying to run a mailx command to send an email (all internal, server does not talk to the outside world)
It is not passing the Variable in the subject of the email.
Code:
system('mailx -s "[CLOSE#$line]" -r "user@domain.com" user@domain.com stamp.txt');
$line is a variable that works and I have tried to just print the variable and it works just fine.
I also tried:
Code:
system('mailx -s "CLOSE#'$line'" -r "user@domain.com" luma@domain.com < stamp.txt');
any suggestions?
I am new to perl and been at this for hours now and starting to go nuts
Thank you
Luma