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" [EMAIL PROTECTED]
> 
> 
> got PHP?
> 
> <?php
> $to = "[EMAIL PROTECTED]";
> $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                                    [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to