how to send mail without human intervention?
Zoki
zoki.news
Mon May 17 11:38:01 PDT 2004
----- Original Message -----
From: "Net Llama!" <netllama at linux-sxs.org>
To: <linux-users at linux-sxs.org>
Sent: Saturday, September 21, 2002 8:44 AM
Subject: how to send mail without human intervention?
> I'm writing a bash script where I need to send email out depending on
> certain conditions within the script.
*** I used mail as a way of keeping me informed about batch results when I
was setting up CFT for the French car maker Renault and their e-commerce
site. This is what you could try:
(echo "Bla, bla, bla in the body of the message" | $MAILER -c
[cc_to_whoever] \
-s "Subject" "To_recepients1, 2, 3,...")
Hope it helps,
Zoran.
More information about the Linux-users
mailing list