[mdlug] Script Writing: email notification

Ingles, Raymond Raymond.Ingles at compuware.com
Wed Mar 28 12:52:42 EDT 2007


> From: Robert Adkins

>     Is there a way to have a script generate an email?

 man mail

echo "This is mail body" | mail -s "This is subject" mail_ID at somedomain.com

cat mail_body_file.txt | mail -s "This is subject" mail_ID at somedomain.com

 Sincerely,

 Ray Ingles                                    (313) 227-2317

 "Remember when we had that war on drugs and now there aren't
                any drugs anymore?" - dameron
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. 



More information about the mdlug mailing list