On 1/2/08, Gurpreet Singh <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am a beginner of perl and sorry if I am asking something silly.
> I have written the following code using some pre-made scripts on net.


> open (MAIL,"|/usr/sbin/sendmail");
> print MAIL "To: $to\n";

If you're providing the recipient addresses on standard input, you
need to invoke sendmail as "sendmail -t".

-- 
Mark

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to