On 02/11/2016 22:14, Andy Bach wrote:
#!/usr/bin/perl
my $vacation_forward = 'vacat...@domain.com <http://domain.com>';
open(OUT, "|/usr/sbin/sendmail $vacation_forward") or die ("Can't
sendmail - $!");
my $email_addr_to = '';
while ( <>
always use a conditional on open
stmts, often
open(my $mh, "|$sendmail $vac) or die "can't exec $sendmail: $!";
Using a lexical, instead of a NAME is modern perl, you still do
print $mh "header: ...
maybe (perldoc MIME::Parser):
### Congratulations: you
Hi
OK, complete newbie to perl. I am busy playing around/learning and I
wanted to create a simple perl script that I can pipe an email too and
then grab the To header and output that and then pipe the unmodified
email to sendmail with a different recipient...
similar to
cat /var/mail
On 2011-05-12 08:20, Irfan Sayed wrote:
i need to use sendmail module of perl to send mails. i have seen much perl
modules to send mails
but i dont know which one is suitable for my requirement
my requirement is :
i need such module which will allow me to generate/create table structure
2011/5/12 Leo Susanto :
> I prefer using Net::SMTP with Authen::SASL for authentication.
I agree Net::SMTP is good.
--
\0/ Hobbestigrou
site web: erakis.im
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
I prefer using Net::SMTP with Authen::SASL for authentication.
Plus, read this: http://en.wikipedia.org/wiki/HTML_email
On Wed, May 11, 2011 at 11:20 PM, Irfan Sayed wrote:
> hi all,
>
> i need to use sendmail module of perl to send mails. i have seen much perl
> modules to send m
Cheers,
Pete
[1] http://search.cpan.org/perldoc?MIME::Lite
On 12/05/11 07:20, Irfan Sayed wrote:
hi all,
i need to use sendmail module of perl to send mails. i have seen much perl
modules to send mails
but i dont know which one is suitable for my requirement
my requirement is :
i need such modu
hi all,
i need to use sendmail module of perl to send mails. i have seen much perl
modules to send mails
but i dont know which one is suitable for my requirement
my requirement is :
i need such module which will allow me to generate/create table structure
format in the main body of mail
no
> "SF" == Shlomi Fish writes:
SF> Don't slurp files this way:
SF> http://perl-begin.org/tutorials/bad-elements/#slurp
if you are going to show a slurp sub in your tutorial at least show a
good one. look at my slurp article in the File::Slurp distro for a
better and faster one. avoiding
, so it will apprears with "weird" characters.
>
>
> Does anyone has any working example or any suggestion please ?
>
Maybe look into the Encode module and maybe try
http://search.cpan.org/dist/Email-Sender/ instead of Mail-Sendmail.
Now a few comments on your code:
>
ple or any suggestion please ?
Best Regards,
My code is :
1. #!/usr/bin/perl
2.
3.
4. use strict;
5. use Mail::Sendmail;
6. use MIME::Base64;
7.
8. my $content = `cat tmp.txt`;
9.
10. print "Sending an email .";
11.
12. my %mail = (
13.
.
John
> -Original Message-
> From: Uri Guttman [mailto:u...@stemsystems.com]
> Sent: Thursday, 29 April 2010 4:11 p.m.
> To: John Bruin
> Cc: beginners@perl.org
> Subject: Re: sendmail arguments
>
> >>>>> "JB" == John Bruin writes:
>
&g
sub mail(*) {
JB> my $top = shift;
JB> open(MAIL, "| $sendmail -t -oi -oem") or die "open: $!";
JB> $top->print(\*MAIL);
JB> close MAIL;
JB> }
look at the manual page for sendmail. if you don't have man pages
installed, google for it. thos
John Bruin asked:
> I have inherited a Perl script which sends and parses email. I
> am having trouble trying to figure out what the "-oi" and
> "-oem" arguments do in the sub below. Can anyone help?
"-oe" sets the ErrorMode.
>From http://www.sendmail.org/~ca/email/man/sendmail.html:
ErrorMod
t;
open(MAIL, "| $sendmail -t -oi -oem") or die "open: $!";
$top->print(\*MAIL);
close MAIL;
}
I did a 'man sendmail' on my Unix-based system and came up with this
explanation:
-oiWhen reading a message from standard input, don'
John Bruin wrote:
I have inherited a Perl script which sends and parses email. I am having
trouble trying to figure out what the "-oi" and "-oem" arguments do in the
sub below. Can anyone help?
They are arguments for the program in $sendmail. First you have to find
I have inherited a Perl script which sends and parses email. I am having
trouble trying to figure out what the "-oi" and "-oem" arguments do in the
sub below. Can anyone help?
Thanks
John
sub mail(*) {
my $top = shift;
open(MAIL, "| $sendmail -
> Message du 16/10/08 14:12
> De : [EMAIL PROTECTED]
> A : [EMAIL PROTECTED], beginners@perl.org
> Copie à :
> Objet : RE: sendmail module
>
>
>
> Hi All/Jeff,
>
> Somehow I am not able to install/configure Sendmail module. Can somebody
> have another option/s
Hi All/Jeff,
Somehow I am not able to install/configure Sendmail module. Can somebody
have another option/script/module then please let me know.
I am really stuck.
Please help/advise.
Regards
Irf.
-Original Message-
From: Jeff Pang [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16
Jeff.
--- On Thu, 10/16/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Subject: sendmail module
> To: beginners@perl.org
> Date: Thursday, October 16, 2008, 5:25 AM
> Hi All,
>
>
>
> I am using Perl 5
Hi All,
I am using Perl 5.6.1 and want to sue sendmail module. I have copied the
Sendmail.pm module to the mail dir. But still it is not executing
properly.
Following is the exact error.
Can't locate MIME/Base64.pm in @INC (@INC contains:
/usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/
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 &qu
int"Enter Subject";
my $sub=;
print"Enter Body";
my $body=;
open (MAIL,"|/usr/sbin/sendmail");
You should verify that the pipe opened correctly:
open MAIL, '|-', '/usr/sbin/sendmail'
or die "Cannot open pipe to sendmail: $!&q
why the label?
>my $to=;
>
>print"Enter Subject";
>my $sub=;
>
>print"Enter Body";
>my $body=;
>
>
>
> open (MAIL,"|/usr/sbin/sendmail");
You should verify that the pipe opened correctly:
open MAIL, '|-',
my $to=;
print"Enter Subject";
my $sub=;
print"Enter Body";
my $body=;
open (MAIL,"|/usr/sbin/sendmail");
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $sub\n\n";
print MAIL "$body\n"
uot;Enter Subject";
my $sub=;
print"Enter Body";
my $body=;
open (MAIL,"|/usr/sbin/sendmail");
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $sub\n\n";
print MAIL "$body\n";
close MAIL;
However i
> From: Michael Goopta [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 07, 2007 12:13
> To: beginners@perl.org
> Subject: Where can I download the Perl Mail::Sendmail library module
>
> Hi Chas,
>
> Thanks a lot for your help. It did get me started. It had time
Hi Chas,
Thanks a lot for your help. It did get me started. It had time
module.
Now, when I started writing a simple sendmail routine, I find
that I do not have Mail/sendmail.pm file.
(It was not included in the download)
Can you please help me by telling me where I can download it
from.
I work
sendmail 2.09 module from CPAN.
Hello,
Just give my suggestion.I usually use Net::SMTP to sendmail to multi-recipients.
Using this module you don't need to foreach loop to sendmail.
For example,it can write:
my $smtp = Net::SMTP->new('Host'=>$mtahost,'Port
>
>I need to send mail to all users defined in one array. I tried foreach
>loop but what is happening is it is sending mail to only first user in
>the array. not sending mails to rest of the users.
>
>Is there any way to send a mail to all users in array in one shot. I am
&g
-Original Message-
From: Sayed, Irfan (Irfan) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 4:07 PM
To: beginners@perl.org
Subject: sendmail
Hi All,
I need to send mail to all users defined in one array. I tried foreach
loop but what is happening is it is sending mail to
Hi All,
I need to send mail to all users defined in one array. I tried foreach
loop but what is happening is it is sending mail to only first user in
the array. not sending mails to rest of the users.
Is there any way to send a mail to all users in array in one shot. I am
using sendmail 2.09
Мандип Сингх Бхабха wrote:
How to use this module if there is russian language in subject field ? Body
of message, can be send using html.
use the # _text_info
# _html_info keys for the message, use the Mail::Sender object's
encoding methods for the subject, etc
--
To unsubscribe, e-mail:
TED]
Sent: Friday, June 02, 2006 9:53 PM
To: beginners@perl.org
Subject: Re: Sendmail mail from script
Мандип Сингх Бхабха wrote:
> There are multiple ways to send mail from perl script. I think this
> code will help.
Your life will be much much much simpler if you use
Mail::Se
very very portably
(PIPEing to sendmail is *not* very portabel in the least)
Its very easy to maintain and troubelshoot:
email(\%myemail) or die "Email could not be sent: $@";
HTH :)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
uot; Can't open mail handle: $!";
print ML $_ ;
close(ML);
----
Or
----
open (SENDMAIL, "|/usr/sbin/sendmail") || die "ERROR: Can not run
sendmail";
print SENDMAIL "MIME-Version: 1.0\n";
print SENDMAIL "
e: $!";
print ML $_ ;
close(ML);
Or
----
open (SENDMAIL, "|/usr/sbin/sendmail") || die "ERROR: Can not run
sendmail";
print SENDMAIL "MIME-Version: 1.0\n";
print SENDMAIL "Content-Type:
rts with
"ERROR"
foreach (@mail2log) {
if ($_ =~ /^ERROR/ig) #since this could always be true i'd like to mail
the value of $_ via Sendmail but how?
{
open(SENDMAIL "|/usr/sbin/sendmail -oi -t -odq")
or die "Can't fork for se
method:
$msg->to(@addrlist);
Do I have to think about tuning my sendmail daemon?
Not for Perl's sake.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
is). Can $to be a list of 100 email
>>addresses?
>>
>>Do I have to think about tuning my sendmail daemon?
>>It is starting automatically upon boot, of course
>>
>>-matthew sacks
>>Peace Corps Volunteer
>>[EMAIL PROTECTED]
>>
>
>
>
erldoc -q mail).
>
> Where I can I find some advice?
> E.G., there is always an example of code that defines
> a $to argument. but can $to be a list of addresses?
> (a group, that is). Can $to be a list of 100 email
> addresses?
>
> Do I have to think about tuning my sendmai
able to do something like
send_message_to( @addresses )
where, of course, send_message_to() is an exercise for the reader :-)
> Do I have to think about tuning my sendmail daemon?
Maybe, but I wouldn't worry about that unless you notice problems.
--
Chris Devers
®
Vs>AíEÖZ
that defines
a $to argument. but can $to be a list of addresses?
(a group, that is). Can $to be a list of 100 email
addresses?
Do I have to think about tuning my sendmail daemon?
It is starting automatically upon boot, of course
-matthew sacks
Peace Corps Volunteer
[EMAIL PROT
Ah.
Then clearly you need to be doing something more robust than this.
You *could* pull some clever code in your Perl to figure out where the
sendmail program lives, but it's hardly worth the effort. It can be all
over the place on different systems, and a lot of systems now won't
On Fri, 3 Jun 2005, John W. Krahn wrote:
> Chris Devers wrote:
> >
> > If you don't have the `locate` database on your system, you're going
> > to have to walk the while filesystem, using something like `find`.
> > Here's one way to do it, but it will be very, very, very slow:
> >
> > $ find /
rver...
>
> Anish
Hi
One way you could do it:
Set the $sendmailPath in a BEGIN block after detecting the OS the program is
running on. Something like
BEGIN {
our $sendmail;
if ($^O eq 'linux') {
$sendmail='/usr/sbin/sendmail';
}
elsif ($^O eq ) {
}
Chris Devers wrote:
If you don't have the `locate` database on your system, you're going to
have to walk the while filesystem, using something like `find`. Here's
one way to do it, but it will be very, very, very slow:
> $ find / -type f | grep -v '/.*/.*/.*/.*/'
^
AIL PROTECTED]>
To: "Anish Kumar K" <[EMAIL PROTECTED]>
Cc: "Perl Beginners List"
Sent: Saturday, June 04, 2005 10:39 AM
Subject: Re: How to get the sendmail path
> On Sat, 4 Jun 2005, Anish Kumar K wrote:
>
> > Isn't there a easy way [to find sendmail]
On Sat, 4 Jun 2005, Anish Kumar K wrote:
> Isn't there a easy way [to find sendmail] [question-mark]
If you're on a Unix-ish platform, and the sendmail program is installed
somewhere in your $PATH, the `which` command can help. For instance:
$ which sendmail
/usr/
Hi
I wrote a program using send mail for a mail application. In the server I was
testing it sendmail was installed in /usr/bin/sendmail.
But in a different server the path is different. Isn;t there a easy way for
this. Like I need to get the path of the send mail and then assign it. Please
- Original Message -
From: Michael Kraus <[EMAIL PROTECTED]>
Date: Wednesday, December 22, 2004 6:47 pm
Subject: Fedora core 3 breaks sendmail functionality???
> G'day...
Hello
>
> I've recently upgraded to Fedora Core 3, and have found that now
> my Perl
G'day...
I've recently upgraded to Fedora Core 3, and have found that now my Perl
scripts which use the MIME::Lite module no longer work.
According to the error log, the problem is their seems to be permission
problems executing sendmail. (See below)
[Thu Dec 23 10:07:52 2004] [erro
>
> Hi all!
>
> I am using Mail::Sendmail module to send e-mails from my perl
application but the text of these messages seems to be too much long and
when receiving the e-mail the text of the message is not complete.
> Do yo know if there are any message size limitation? It
On Wed, 2004-06-09 at 10:59 +0200, Miguel Ãngel Morales wrote:
> Hi all!
>
> I am using Mail::Sendmail module to send e-mails from my perl application but the
> text of these messages seems to be too much long and when receiving the e-mail the
> text of the message is not complet
Hi all!
I am using Mail::Sendmail module to send e-mails from my perl application but the text
of these messages seems to be too much long and when receiving the e-mail the text of
the message is not complete.
Do yo know if there are any message size limitation? It this limitation exists, what
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 04, 2004 6:39 AM
> To: [EMAIL PROTECTED]
> Subject: sendmail
>
> ok here it what I did and it is emailing sporadically or not at all???
> Also it is not placing the array
From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
: ok here it what I did and it is emailing sporadically or not
: at all???
: Also it is not placing the array data into the email body???
: it is like the if clause it not working.
:
: thank you!
Isolate just the sendmail part
[EMAIL PROTECTED] wrote:
ok here it what I did and it is emailing sproadically. Also it is not
placing the array data into the email body???
## Set pragmas
use strict;
use Mail::Sendmail;
## Set and edit variables
my $foreigntapes="/usr/local/log/foreign_tape
ok here it what I did and it is emailing sporadically or not at all???
Also it is not placing the array data into the email body???
it is like the if clause it not working.
thank you!
## Set pragmas
use strict;
use Mail::Sendmail;
## Set and edit variables
my
ok here it what I did and it is emailing sproadically. Also it is not
placing the array data into the email body???
## Set pragmas
use strict;
use Mail::Sendmail;
## Set and edit variables
my $foreigntapes="/usr/local/log/foreign_tapes.log";
delete
[EMAIL PROTECTED] wrote:
> I was looking at the Mail::Sendmail module from CPAN and I did not
> find anything that showed printing a body. How do I print a body of
> text data from a variable?
I haven't used Mail::Sendmail, but it looks like the message body goes in
the Message ent
I was looking at the Mail::Sendmail module from CPAN and I did not find
anything that showed printing a body. How do I print a body of text data
from a variable?
The highlighted code is not working but I was playing with it to get this
message with the scaler $ftapes listed.
thank you
AM
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
cc:
Subject:RE: using Mail::Sendmail
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
: All,
:
: I am getting these errors... any ideas?
:
: Global symbol "%mail" requires explic
l
>line.
>Bareword "EO_SIG" not allowed while "strict subs" in use at foreign_tape_ck.pl .
Generally perl reports the line number of the error. Did you paste these
correctly?
>Here is my code:
>## Set pragmas
>use strict;
>use Mail::Sendmail;
>## Set an
eign_tape_ck.pl . foreign_tape_ck.pl had compilation errors.
[snip]
: if ( -s OUT ) {
: my %mailman = ( From => 'EDM01 <[EMAIL PROTECTED]>',
: To => 'Derek Smith <[EMAIL PROTECTED]>',
: Subject => "Foreign Tapes Found" );
: sendmail (%mail) or
is my code:
## Set pragmas
use strict;
use Mail::Sendmail;
## Set and edit variables
my $foreigntapes="/usr/local/log/foreign_tapes.log";
delete $ENV{'IFS'};
local $ENV{'PATH'} = "/usr/epoch/bin:/usr/epoch/EB/bin:/usr/bin:/usr/sbi
n:/bin:/sbin";
#print $EN
deny wrote:
ok i am installing postfix and all works fine in my script to sending data
just a problem
i want to receive my mail from my domain-name what pop soft easy to
configure can i use ?
pop3, movemail (Mozilla), imap - you have many options -- but this is
now best asked on the postfix-user
If sendmail is too complex to install/operate maybe
you should try http://www.postfix.org/
f
ok i am installing postfix
and all works fine in my script to sending data
just a problem
i want to receive my mail from my domain-name
what pop soft easy to configure can i use ?
thanks
--
To
Dirk Tamme <[EMAIL PROTECTED]> asked:
> I get the error message:
> /usr/bin/perl: relocation error:
>
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/Sendmail/Milter/
Milter.so:
> undefined symbol: smfi_setconn
>
> It seems that there is missing somethi
Thomas Bätzler wrote:
Dirk Tamme <[EMAIL PROTECTED]> asked:
I get the error message:
/usr/bin/perl: relocation error:
/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/Sendmail/Milter/
Milter.so:
undefined symbol: smfi_setconn
It seems that there is missing som
Hello,
there is a special mailing list for Sendmail::Milter, a Perl package for
communication with the Milter interface of sendmail. But, I didn't get
an answer there, so please allow me to ask at this list.
I used a script given by Derek Balling:
www.tpj.com/documents/s=7178/sam0206l/
deny wrote:
my firewall don't stop the 25 port locally
i think that sendmail is not operationnel
telnet 127.0.0.1 25
If you have SMTP services then you will get a SMTP banner.
If sendmail is too complex to install/operate maybe
you should try http://www.postfix.org/
ftp://ftp.porcupin
The point he was making is that if you call sendmail directly you have
to make these tests everytime you want to use the script on a new
machine. (And, for the purposes of these tests, an upgrade means a new
machine.) There are modules that will handle sending a message via
SMTP, make sure it
--As of Saturday, April 17, 2004 7:54 AM +0200, deny is alleged to have
said:
dont know
i use sendmail-8.12.9-7mdk
its my server
lrwxrwxrwx1 root root 21 avr 13 14:37 sendmail ->
/etc/alternatives/mta*
The point he was making is that if you call sendmail directly you have
piping to a program is very unreliable. for instance
- what flags are necessary with the version of sendmail?
dont know
i use sendmail-8.12.9-7mdk
- Is sendmail sendmail or a symlink to the server's real Mail Server ?
its my server
lrwxrwxrwx1 root root 21 avr 13
deny wrote:
good afternoon
i use sendmail to send mail with a script perl
i receive this mail in /var/spool/clientmqueue
but not in my mailbox mozilla
here is the line in the script perl
open(MAIL, "|/usr/sbin/sendmail [EMAIL PROTECTED]");
piping to a program is very unreliable. fo
good afternoon
i use sendmail to send mail with a script perl
i receive this mail in /var/spool/clientmqueue
but not in my mailbox mozilla
here is the line in the script perl
open(MAIL, "|/usr/sbin/sendmail [EMAIL PROTECTED]");
sendmail is launched
[EMAIL PROTECTED] clientmqueue]# ps -
Hi,
I'm trying to install Sendmail::Milter on an HP9000/B1000
box, HP-UX 11i. Perl was taken from HP (perl, v5.8.2 built
for PA-RISC1.1-thread-multi, HP c-compiler used), sendmail
is in its last version (8.12.11), and Sendmail:Milter is
0.18.
After appending to site.config.m4:
APPE
Please bottom post
> I got it. I never thought indentation could cause sendmail to mess up.
> As a beginner, I need you try
> everything possible to know their pros and cons. Next time - I may
> consider using a CPAN module.
> :-)
>
> Thanks
I would disagree he
I got it. I never thought indentation could cause sendmail to mess up.
As a beginner, I need you try
everything possible to know their pros and cons. Next time - I may
consider using a CPAN module.
:-)
Thanks
Wiggins d'Anconia wrote:
B. Fongo wrote:
It's my first time to use sendma
[EMAIL PROTECTED] wrote:
> I have sendmail working ok with perl by calling sendmail (qmail-inject).
> However, now I need to send an attachment with it. Can someone tell me how
> this can be done?
>
> fw
Is that the Mail::Sendmail module, or shelling out to an external sendmail
u
On Wednesday, Nov 26, 2003, at 15:52 US/Pacific, [EMAIL PROTECTED]
wrote:
I have sendmail working ok with perl by calling sendmail
(qmail-inject).
However, now I need to send an attachment with it. Can someone tell me
how
this can be done?
The CPAN is your friend,
you might want to look at say
I have sendmail working ok with perl by calling sendmail (qmail-inject).
However, now I need to send an attachment with it. Can someone tell me how
this can be done?
fw
-
eMail solutions by
http://www.swanmail.com
--
To unsubscribe, e-mail: [EMAIL
My script uses Sendmail. And I was just wondering about the question that is
in todays topics, How to pack the mail module with your project.
Do all servers with perl 5 and above come with Mail::Sendmail? Should I put
Mail::Send in my programs library of odds n ends and use it instead?
> [EMAIL PROTECTED] ./summer.pl
> Bareword found where operator expected at ./summer.pl line 78, near "print
> SENDMAIL "TO"
> (Might be a runaway multi-line "" string starting on line 77)
>(Do you need to predeclare print?)
> syntax error at ./
t;not ready" and sends an e-mail notification to the sysadmin detailing the
process id and service name that matched the string "not ready". However,
the script produce the following syntax error below, when it comes to the
SENDMAIL part in the sub-routine sendMail:
[EMAIL PR
mel awaisi wrote:
> Hello,
>
> i have the script below retest.pl, and whe i try to run it i get nothing.
>
> [EMAIL PROTECTED] cgi-bin]# perl retest.pl
> [EMAIL PROTECTED] cgi-bin]#
>
> -retest.pl
> # Open Sendmail
> ope
mel awaisi wrote:
Hi, this is the whole script:
#!/usr/bin/perl
use strict;
use warnings;
# Open Sendmail
open(MAIL, "|/usr/lib/sendmail -t");
# Write to the sendmail program
print MAIL "To: [EMAIL PROTECTED]";
print MAIL "From: [EMAIL PROTECTED]";
print MAIL &quo
Hi, this is the whole script:
#!/usr/bin/perl
use strict;
use warnings;
# Open Sendmail
open(MAIL, "|/usr/lib/sendmail -t");
# Write to the sendmail program
print MAIL "To: [EMAIL PROTECTED]";
print MAIL "From: [EMAIL PROTECTED]";
print MAIL "Subject:Yoour Subj
Hello,
i have the script below retest.pl, and whe i try to run it i get nothing.
[EMAIL PROTECTED] cgi-bin]# perl retest.pl
[EMAIL PROTECTED] cgi-bin]#
-retest.pl
# Open Sendmail
open(MAIL, "|/usr/lib/sendmail -t");
# Write to the sendmail pro
I use Netscape, ActivePerl 5.8, NT.
> >
> > Thanks,
> > Steve Few
> > NC DENR
> > [EMAIL PROTECTED]
> >
> >
> > -- sendmail.pl -
> > #!/usr/bin/perl -w #Or Mail::Sendmail, which can be used
> like this: ;
pl below is sendmail.pl.
>
> Any suggestions? I use Netscape, ActivePerl 5.8, NT.
>
> Thanks,
> Steve Few
> NC DENR
> [EMAIL PROTECTED]
>
>
> ------ sendmail.pl -
> #!/usr/bin/perl -w
> #Or Mail::Sendmail, which can be used li
ivePerl 5.8, NT.
Thanks,
Steve Few
NC DENR
[EMAIL PROTECTED]
-- sendmail.pl -
#!/usr/bin/perl -w
#Or Mail::Sendmail, which can be used like this: ;
use Mail::Sendmail;
%mail = ( To => '[EMAIL PROTECTED]',
Any changes to sendmail?
When pipingto an external prog you now have to deal with what's going on in that prog
and perhaps an error it is sending out is making perl say ' no recipients' when there
is.
I'd say use a module that doesn't realy on external prog.
Rob Richardson wrote:
Greetings!
I have a script that uses sendmail. It used to work. I didn't touch
it. It doesn't work now. The log file tells me that there are no
recipient addresses. It looks to me like they are. Here's the code:
# Send a confirming E-mail.
open (S
Greetings!
I have a script that uses sendmail. It used to work. I didn't touch
it. It doesn't work now. The log file tells me that there are no
recipient addresses. It looks to me like they are. Here's the code:
# Send a confirming E-mail.
open (SENDM
[EMAIL PROTECTED] wrote:
>
> On Wed, 19 Feb 2003 13:02:29 -0800, "R. Joseph Newton" <[EMAIL PROTECTED]> wrote:
>
> > Steve Maroney wrote:
> >
> > > Is there a Sendmail port to Winblows ? I d
On Wed, 19 Feb 2003 13:02:29 -0800, "R. Joseph Newton" <[EMAIL PROTECTED]> wrote:
> Steve Maroney wrote:
>
> > Is there a Sendmail port to Winblows ? I dont think there is .
> >
> > Thank you,
> &g
Steve Maroney wrote:
> Is there a Sendmail port to Winblows ? I dont think there is .
>
> Thank you,
> Steve Maroney
Yes. Mail::Sendmail can be istalled quickly and easily on ActiveState Perl using Perl
Package Manager [ppm]. The command, once ppm is started, is:
install Ma
Rob Richardson wrote:
> Greetings!
>
> The script I am trying to improve uses sendmail. Before I install the
> script on its target Unix box, I would like to make sure the sendmail
> part of it works. However, I'm working on a Win98 box. Where can I
> get a sendmail fo
1 - 100 of 244 matches
Mail list logo