Re: Email function question

2003-01-28 Thread John W. Krahn
Deborah Scott wrote: > > >To make this work, you have to specify the list variable ($i): > > >$file = "/suidbin/sendmail -t"; > >$var = "the_file.txt"; > > > >open(FILE, "$var") || die "cant open text file"; > >@file = ; > >close(FILE); > >foreach $i (@addressee) { > > open(MAIL, "|$file $ad

RE: Email function question

2003-01-28 Thread Scott, Deborah
>To make this work, you have to specify the list variable ($i): >$file = "/suidbin/sendmail -t"; >$var = "the_file.txt"; > >open(FILE, "$var") || die "cant open text file"; >@file = ; >close(FILE); >foreach $i (@addressee) { > open(MAIL, "|$file $addressee") || die "can't open sendmail"; >

RE: Email function question

2003-01-28 Thread .IT Workflow - Terry Honeyford
function question > >if your file is a text file > >#! /usr/bin/perl -w > >$file = "/suidbin/sendmail -t"; >$var = "the_file.txt"; > >open(FILE, "$var") || die "cant open text file"; >@file = ; >close(FILE); > >##

RE: Email function question

2003-01-27 Thread John Baker
On Mon, 27 Jan 2003, Scott, Deborah wrote: > Date: Mon, 27 Jan 2003 16:54:28 -0600 > From: "Scott, Deborah" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: RE: Email function question > > > > The above file works great on my NT server but how

RE: Email function question

2003-01-27 Thread Dan Muey
> > > > >if your file is a text file > > > >#! /usr/bin/perl -w > > > >$file = "/suidbin/sendmail -t"; > >$var = "the_file.txt"; > > > >open(FILE, "$var") || die "cant open text file"; > >@file = ; > >close(FILE); > > > >##open pipe to sendmail > >open(MAIL, "|$file") || die "cant open sendm

RE: Email function question

2003-01-27 Thread Scott, Deborah
> >if your file is a text file > >#! /usr/bin/perl -w > >$file = "/suidbin/sendmail -t"; >$var = "the_file.txt"; > >open(FILE, "$var") || die "cant open text file"; >@file = ; >close(FILE); > >##open pipe to sendmail >open(MAIL, "|$file") || die "cant open sendmail"; >print MAIL "To: blah\@devn

Re: Email function question

2003-01-27 Thread Janek Schleicher
On Fri, 24 Jan 2003 16:35:02 +, Deborah Scott wrote: > ... > How do I send an email using perl? > ... perldoc -q 'send mail' Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Email function question

2003-01-24 Thread jdavis
On Fri, 2003-01-24 at 14:20, jdavis wrote: > On Fri, 2003-01-24 at 15:35, Scott, Deborah wrote: > > I asked this before, but I probably made the question too long and confusing > > to follow. > > > > How do I send an email using perl? > > The path for the sendmail program is: > > h:/blah/blah

Re: Email function question

2003-01-24 Thread jdavis
On Fri, 2003-01-24 at 15:35, Scott, Deborah wrote: > I asked this before, but I probably made the question too long and confusing > to follow. > > How do I send an email using perl? > The path for the sendmail program is: > h:/blah/blah/SENDMAIL/sendmail.exe > > I want it to open the conte

Re: Email function question

2003-01-24 Thread Johnathan Kupferer
Don't use sendmail. Use one of the perl modules designed to communicate with SMTP servers like Mail::Sender or Mail::Sendmail (which, confusingly enough has nothing to do with the sendmail program). The documentation that comes with these modules should be more than enough to get you going.

Email function question

2003-01-24 Thread Scott, Deborah
I asked this before, but I probably made the question too long and confusing to follow. How do I send an email using perl? The path for the sendmail program is: h:/blah/blah/SENDMAIL/sendmail.exe I want it to open the contents of a particular file. Then send the contents of the file as a