|
|
If you wish to send an unedited file to someone (login)
without invoking mail), enter:
mail login < filename
at the command line.
When you send a file to someone by this method, you can still
specify a subject and carbon copy recipients. For example,
you could send a file named note with the subject
``Important Meeting'' by entering the following command:
mail -s "Important Meeting" -c "peterp josephh" susant < note
The ``To'' field contains ``susant'', and the ``Cc'' field contains ``peterp josephh''.
Sending mail in this way can be used within shell scripts that need to send messages automatically. It can also be used to handle the output of at, batch, and cron jobs.