[Gloucs] SH Mail

Paul Broadhead lug at twinmoons.clara.co.uk
Fri Oct 17 22:48:59 BST 2003


Tony <tony at beaumont-travel.com> wrote:

> How do i send an email via shell??

For fully automated email, I often use something of the form:

echo "Body of the mail" | mail -s "Subject of the mail" user at email.address

If you don't pipe in the body, you are prompted on standard input.

Paul



More information about the gloucs mailing list