Damien,

Where is the "arg" array being populated?  If you replace "arg" with
"ARGV" in your call to MailFile then maybe it would work.  You'd also
have to replace the single quotes with double quotes.  If you use
single quotes, you just get the string between the quotes.  If you use
double quotes, any variable names will be replaced with the values of
those variables, which is what you want.   

And what is $i used for?

RobR

--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Thanks,
> 
> the script is the following:
> 
> #!/usr/bin/perl
> 
> use Mail::Sender;
> $i = scalar (@ARGV);
> 
> $sender = new Mail::Sender
> {smtp => 'server.smtp.com', from => '[EMAIL PROTECTED]'};
> $sender->MailFile({to => '[EMAIL PROTECTED]',
>                    subject => '$arg[0]',
>                    msg => "$arg[1]",
>                    file => '$arg[2]'});
> 
> $sender->Close;
> 
> 
> this script call as following :
> sendmail.pl <subject> <body> <path to attachment>
> 
> i not receive mail.



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to