how to send mail without human intervention?

Net Llama! netllama
Mon May 17 11:38:00 PDT 2004


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



More information about the Linux-users mailing list