Re: [lug-nuts] auto mail question

From: Mike Machado (mike@cheapnet.net)
Date: Mon Nov 29 1999 - 13:04:30 PST


On Mon, 29 Nov 1999, Webb Sprague wrote:

> Does anyone know how to use "mail" in batch mode? I
> want to put a line in a shell script that sends me
> mail whenever it detects something in my system, like
> a security risk. I would also be interested in using
> perl so that I could use variables for the various
> parts of the header and the text. No, I don't want to
> send spam, either...
>
> I would also like to know how to set up an
> auto-response thing, if possible, but that is a ways
> off in my development...
>
> Thanks
> W
> __________________________________________________
> Do You Yahoo!?
> Thousands of Stores. Millions of Products. All in one place.
> Yahoo! Shopping: http://shopping.yahoo.com
> ****************************************************************************
> * To UNSUBSCRIBE from the list, send a message with "unsubscribe lug-nuts"
> * in the message body to majordomo@saclug.org. Please direct other
> * questions, comments, or problems to lug-nuts-owner@saclug.org.
>

Just do a pipe open to sendmail -t from a perl script. Most of the
formmail web scripts do this. You can have your whole message in a
variable if you want.

Mike Machado
mike@innercite.com
InnerCite
Network Specialist

****************************************************************************
* To UNSUBSCRIBE from the list, send a message with "unsubscribe lug-nuts"
* in the message body to majordomo@saclug.org. Please direct other
* questions, comments, or problems to lug-nuts-owner@saclug.org.



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:08 PST