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
>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";
>
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);
>
>##
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
>
> >
> >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
>
>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
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]
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
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
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.
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
11 matches
Mail list logo