DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using e-mail

Sending mail from the command line

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.


Next topic: Editing a message's header
Previous topic: Creating and sending a message

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003