how to send mail without human intervention?
Joel Hammer
Joel
Mon May 17 11:38:00 PDT 2004
I don't see my first post on this as having gotten to the list, so, again:
echo My Message | mail -s "Important Message" addressee
Joel
On Sat, Sep 21, 2002 at 05:23:36PM -0700, Net Llama! wrote:
> thanks, but i don't want to have to use PHP for this.
>
> Ken Moffat wrote:
> > Net Llama! wrote:
> >
> >> I'm writing a bash script where I need to send email out depending on
> >> certain conditions within the script.
> >>
> >> I'm thought that I could use 'mail' to do the job, but it seems to
> >> require human intervention to send the message out. I'm trying:
> >> mail -n -s "another test of mail" netllama at linux-sxs.org
> >
> >
> > got PHP?
> >
> > <?php
> > $to = "netllama at linux-sxs.org";
> > $subject = "Alert from Page";
> > $body = "Page condition met!";
> > mail($to,$subject",$body);
> > ?>
> >
> >
> > bool mail ( string to, string subject, string message [, string
> > additional_headers [, string additional_parameters]])
> >
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> L. Friedman netllama at linux-sxs.org
> Linux Step-by-step & TyGeMo: http://netllama.ipfox.com
>
> 5:20pm up 47 days, 1:40, 3 users, load average: 0.28, 0.39, 0.55
>
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
More information about the Linux-users
mailing list