>> And NO, you're not trying to pass the recip on the command line. Your're
>> passing it on STDIN.
>> 
> 
> I still don't understand your logic here -- script.pl [EMAIL PROTECTED] sent
> mail to [EMAIL PROTECTED] -- but that's not really relevant to this list, so
> don't worry about it.

You are talking about different things... Alex, you may well be passing the
address INTO YOUR SCRIPT on the command line. Johan and Bruce are pointing
out that _within_ your script you are not passing the address TO SENDMAIL on
the command line.

# pass to sendmail on commands line
open MAIL, "|/usr/lib/sendmail -t $recip" ...

# passing on STDIN
open (MAIL, "|/usr/sbin/sendmail -t");
print MAIL "To: $recip\n";


Reply via email to