RE: Spam:Re: Frowarding mail automatically through script

2004-11-28 Thread Michael Kraus
Cc: [EMAIL PROTECTED] > Subject: Spam:Re: Frowarding mail automatically through script > > sub mail() > { > my $from="[EMAIL PROTECTED]"; > my $to=$recipient; > my $sendmailpath="/usr/sbin/sendmail"; > > > open (SENDMAIL, "| $sendm

Re: Frowarding mail automatically through script

2004-11-28 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: sub mail() Why the (), you're not shift()ing anything?? { my $from="[EMAIL PROTECTED]"; my $to=$recipient; Why localize a more "global" var? why not: my $to = shift; or just use $recipient? And also for the other vars? my $sendmailpath="/usr/sbin/sendmail"; If this is har

Re: Frowarding mail automatically through script

2004-11-28 Thread Jenda Krynicky
From: Mike Blezien <[EMAIL PROTECTED]> > I would strongly suggest using the Mail::Sender module also, extermely > versitile for all types of email needs, SMTP with or without > authentication, uses Sendmail, all types of mail attachments if uses Sendmail? Well the server ... yes, why not, the mod

Re: Frowarding mail automatically through script

2004-11-27 Thread Anish Kumar K.
EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, November 28, 2004 11:31 AM Subject: Re: Frowarding mail automatically through script > sub mail() > { > my $from="[EMAIL PROTECTED]"; > my $to=$recipient; > my $sendmailpath="/usr/sbin/sendmail"; &

Re: Frowarding mail automatically through script

2004-11-27 Thread anish
sub mail() { my $from="[EMAIL PROTECTED]"; my $to=$recipient; my $sendmailpath="/usr/sbin/sendmail"; open (SENDMAIL, "| $sendmailpath -t"); print SENDMAIL "Subject: From Guest Book $subject\n"; print SENDMAIL "From: $from\n"; print SENDMAIL "To: $to\n\n"; print SENDMAIL "$content\n\n"; c

Re: Frowarding mail automatically through script

2004-11-27 Thread Mike Blezien
JupiterHost.Net wrote: vishwas bhakit wrote: i had written following script for sending mail automatically through PERL using "sendmail" program in the perl script. But its not workig. What may be the problem with it. It doesn't: - use strict; - use warnings; - check to see if the open() to se

Re: Frowarding mail automatically through script

2004-11-27 Thread JupiterHost.Net
vishwas bhakit wrote: i had written following script for sending mail automatically through PERL using "sendmail" program in the perl script. But its not workig. What may be the problem with it. It doesn't: - use strict; - use warnings; - check to see if the open() to sendmail worked or not -

Frowarding mail automatically through script

2004-11-27 Thread vishwas bhakit
i had written following script for sending mail automatically through PERL using "sendmail" program in the perl script. But its not workig. What may be the problem with it. #!/usr/local/bin/perl $name = 'name'; $email = 'mail id'; open(MAIL, "| /usr/lib/sendmail -oi -n -t"); print MAIL < Thank Yo