or you could try :
mail -s "subject goes here " user@net < filename
as in
mail -s "howdy" [EMAIL PROTECTED] < /home/mydir/jokes
"<" (redirect) another useful friend ( to send a file, etc.)
Look at mail manual "man mail" for more info
Benjamin Jackson <[EMAIL PROTECTED]> on 11/09/99 12:02:45 PM
Please respond to [EMAIL PROTECTED]
To: Jason Wilson <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED]
Subject: Re: command line email command
Try:
echo '<message>' | mail <user>
like
echo 'Hi Ben' | mail [EMAIL PROTECTED]
ah... pipe... a SysAdmins true friend
Ben Jackson - [EMAIL PROTECTED] - http://www.esgeroth.org/~zaphod
-----BEGIN GEEK CODE BLOCK-----
Version 3.12
GAT d- s+:++ a19 C++++$ UL++++ P++ L++$ E-- W+++ N++
o+ K++ w+ O--- M-- V PS--- PE+++ Y+(++) PGP+ t+++
5+++ X++@ R+@ tv++ b+++ DI++++ D++ G+ e h++ r--- !y+
------END GEEK CODE BLOCK------
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.