Re: how to send mail within a script ?



Hi Juan B -

At 2005-10-22, 01:37:53 you wrote:
>HI,
>
>I am trying to write a script which will send the
>result of a var to mail web mail.this is what I wrote
>:
>
>#!/usr/bin/perl
>#use strict;
>use warnings;
>my $file_listing = `/usr/bin/nmap -p 80 192.168.1.1`;
>
>How can it be done? do I need to configure sendmail on
>my linux box. please try to give a simple solutio
>cause im new in perl.
>
>thanks,
>
>Juan
>

For me, the easiest way is to use the CPAN module Mail::Sender.
Have a look at the documentation at http://search.cpan.org.
If you like it and need further help installing or using it, let us know.

Aloha => Beau;
beaucox@xxxxxxxxxxxxx
2005-10-22


.



Relevant Pages

  • Re: AWK problem need help
    ... The script is as follows: ... printf ("PAT:%s\n", $prev) ... The latter would print the field at whatever position "var" contains, and the whole record if var is zero or unset. ... Also, you don't need the " " as the final argument to splitas that's the default, and awk arrays start at 1, not 0 so "lastline" will always be empty. ...
    (comp.unix.shell)
  • how to send mail within a script ?
    ... I am trying to write a script which will send the ... result of a var to mail web mail.this is what I wrote ... #use strict; ...
    (perl.beginners)
  • NEED HELP IN FIXING A CODE
    ... Below is the sample and simple code that checks the form before submission: ... this script works for client side validation. ... var weekdaynumber=today.getDay ... Prev by Date: ...
    (microsoft.public.frontpage.programming)
  • Re: how to send mail within a script ?
    ... Juan B wrote: ... I am trying to write a script which will send the ... result of a var to mail web mail.this is what I wrote ...
    (perl.beginners)
  • Why doesnt this work in Firefox?
    ... Here's a simple script to update the contents of one select based on ... function AddItem(){ ... Prev by Date: ...
    (comp.lang.javascript)