[mdlug] Script Writing: email notification

Richard Herrell rherrell at twmi.rr.com
Wed Mar 28 12:54:42 EDT 2007


Make sure sendmail is running, then enter the following command at the 
bash prompt or in a script:

mail -s "This is the Subject" destination1 at foo.com destination2 at foo.com 
<<-END
Text of message goes here.
More text until the end is reached.
This is the
END

Your junk mail filter will complain about it; make sure that it doesn't 
automatically delete the message.

Regards,

Richard


Robert Adkins wrote:
> Hey All,
>
>     Is there a way to have a script generate an email?
>
>     Thanks,
>     Rob
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>
>   




More information about the mdlug mailing list