Quote:
Originally posted by humbletech99
mail myemailaddress -s "Subjectline" < var/log/logfile
|
I don't understand "the logfile just becomes the generic attachment"
Independently of that , mail needs the email adress at the last argument :
mail -s "subject" mymailaddress < /var/log/logfile
Should send you a mail with in the body the content of /var/log/logfile
You can also play with mutt if you want to create an attachment.