If yo just want the file to be the contents of the email then
Code:
mail -s "Subject line" me@myserver < file
will do fine.
However, after that it gets more complex. In particular it depends if sendmail has been configured. Additionally, if you want to send the file as an attachment you need to look at uuencode. Try a search on this forum and the General Unix Discussion forum
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.