Re: Using 'sendmail'

2008-01-03 Thread Mark Wagner
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 "To: $to\n"; If you're providing the reci

Re: Using 'sendmail'

2008-01-03 Thread John W. Krahn
Gurpreet Singh wrote: Hi All, Hello, 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. #!/usr/bin/perl You should have these two lines next: use warnings; use strict; l1:print"Enter your E-Mail ID";

Re: Using 'sendmail'

2008-01-03 Thread John W. Krahn
Gurpreet Singh wrote: > Hi All, Hello, > 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. > > > #!/usr/bin/perl You should have these two lines next: use warnings; use strict; > l1:print"Enter your E-Mai

Re: Using 'sendmail'

2008-01-03 Thread Aruna Goke
Gurpreet Singh 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. #!/usr/bin/perl l1:print"Enter your E-Mail ID"; my $from=; l2:print"Enter receipt's E-Mail ID"; my $to=; print"Enter