i have perl script, which is used to send mail. its a command line utility.
if we run this perl script in command line by passing all it's required arguments, it works very well.there no issues.
my problem is :
am just call this perl script by using "system" command inside the another perl script. ie,
mail.pl --contains:
Expand|Select|Wrap|Line Numbers
- system(perl sendEmail.pl -f bbb.aaa@ccc.co.uk -t aaa.ddd@eee.co.uk -s aaabbbcc.ddd.com -u "Test Mail" -m "Test Mail");
-t ADDRESS [ADDR ...] to email address(es)
-u SUBJECT message subject
-m MESSAGE message body
-s SERVER[:PORT] smtp mail relay.
when i try to run mail.pl, i get this error :
Expand|Select|Wrap|Line Numbers
- C:\sendEmail-v1.55>perl mail.pl
- Array found where operator expected at mail.pl line 1, at end of line
- Array found where operator expected at mail.pl line 1, at end of line
- syntax error at mail.pl line 1, near "pl -f "
- Execution of mail.pl aborted due to compilation errors.
am using Win2k OS & Activestate V5.10.0 perl.
can any one help me out this ????
Regards,
Vijayarl