Re: sending mail (learning perl program)

2001-07-30 Thread Mike Rodgers
Doh. I don't know how many times I looked at it and still didn't see the word 'mail' prior to my username. Thanks to all who responded. Mike Marcelo Ramos wrote: > > El Sun, 29 Jul 2001 10:31:11 -0500 > Mike Rodgers <[EMAIL PROTECTED]> escribió: > > >On page 23 of Learning Perl, there are comm

Re: sending mail (learning perl program)

2001-07-30 Thread Peter Scott
At 10:56 AM 7/30/01 +, Mel Matsuoka wrote: >At 01:39 PM 07/30/2001 -0700, [EMAIL PROTECTED] wrote: > >> "Stephen P. Potter" <[EMAIL PROTECTED]> said: > > > >> | > >> | open (MAIL, "|/usr/sbin/sendmail $email") > >> | > >> | to which you should by the way add > >> | > >> | or

Re: sending mail (learning perl program)

2001-07-30 Thread Mel Matsuoka
At 10:56 AM 07/30/2001, Mel Matsuoka wrote: >At 01:39 PM 07/30/2001 -0700, [EMAIL PROTECTED] wrote: >>> "Stephen P. Potter" <[EMAIL PROTECTED]> said: >> >>> | >>> | open (MAIL, "|/usr/sbin/sendmail $email") >>> | >>> | to which you should by the way add >>> | >>> | or die "sen

Re: sending mail (learning perl program)

2001-07-30 Thread Mel Matsuoka
At 01:39 PM 07/30/2001 -0700, [EMAIL PROTECTED] wrote: >> "Stephen P. Potter" <[EMAIL PROTECTED]> said: > >> | >> | open (MAIL, "|/usr/sbin/sendmail $email") >> | >> | to which you should by the way add >> | >> | or die "sendmail: $!\n"; >> >> This probably does not do what y

Re: sending mail (learning perl program)

2001-07-30 Thread smoot
> "Stephen P. Potter" <[EMAIL PROTECTED]> said: > | > | open (MAIL, "|/usr/sbin/sendmail $email") > | > | to which you should by the way add > | > | or die "sendmail: $!\n"; > > This probably does not do what you think it does. It is almost always > worthless to check the s

Re: sending mail (learning perl program)

2001-07-30 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Peter Scott <[EMAIL PROTECTED]> whispered: | Yes, but if you create the above using something like | | open (MAIL, "|/usr/sbin/sendmail $email") | | to which you should by the way add | | or die "sendmail: $!\n"; This probably does not d

Re: sending mail (learning perl program)

2001-07-30 Thread smoot
> Peter Scott <[EMAIL PROTECTED]> said: > Yes, but if you create the above using something like > > open (MAIL, "|/usr/sbin/sendmail $email") > > to which you should by the way add > > or die "sendmail: $!\n"; I left the "die" off for brevity. Good point. > then you now ne

Re: sending mail (learning perl program)

2001-07-29 Thread Peter Scott
At 08:30 PM 7/29/01 -0700, [EMAIL PROTECTED] wrote: > > Gia Elise Barboza <[EMAIL PROTECTED]> said: > > > open(mail, "|mail barbozag\@msu.edu"); > > print mail "bad news: guessed \n"; > > close (mail); > >This works, but if you are not certain of the contents of the email message >(e.g. writing a

Re: sending mail (learning perl program)

2001-07-29 Thread smoot
> Gia Elise Barboza <[EMAIL PROTECTED]> said: > open(mail, "|mail barbozag\@msu.edu"); > print mail "bad news: guessed \n"; > close (mail); This works, but if you are not certain of the contents of the email message (e.g. writing a CGI interface to let a user compose and send an email message)

Re: sending mail (learning perl program)

2001-07-29 Thread Gia Elise Barboza
The code below does not include the pipe char. Without it the code does not work. Hope this helps, Regards Gia. open(mail, "|mail barbozag\@msu.edu"); print mail "bad news: guessed \n"; close (mail); Mike Rodgers wrote: > On page 23 of Learning Perl, there are commands to mail a message out.

Re: sending mail (learning perl program)

2001-07-29 Thread Marcelo Ramos
El Sun, 29 Jul 2001 10:31:11 -0500 Mike Rodgers <[EMAIL PROTECTED]> escribió: >On page 23 of Learning Perl, there are commands to mail a message out. >I have tried to manually send myself a message with mail and it works. >The program does not work. I'm not sure why. Here is the code: > >open

sending mail (learning perl program)

2001-07-29 Thread Mike Rodgers
On page 23 of Learning Perl, there are commands to mail a message out. I have tried to manually send myself a message with mail and it works. The program does not work. I'm not sure why. Here is the code: open(MAIL, "mail EMAIL_ADDRESS_HERE"); print MAIL "bad news: $somename guessed $somegues