On Thu, Dec 13, 2001 at 05:46:05PM -0500, Matthew Daubenspeck wrote (1.00):
> Is there any easy way to send a message complete with subject and body from
> a bash script? I want to run something simple from cron, but can't seem to
> get the format down just right...
mail -s "My subject" email@address <<EOF
Put text of message here, with variables like this:
${MYVARIABLE}
EOF
The EOF isn't special, it's just the end marker for the here document.
M