next up previous contents
Next: ~ r filename: Read Up: The Berkely (BSD) Mail Previous: The Berkely (BSD) Mail   Contents

Sending Mail

To send mail to a user,

mail user[$@$node]
where user is the logon name of the recipient, and node is his/her machine.

After invoking mail, UNIX will come back and prompt the user for the subject of the message, as in:

prompt$>$ mail cantin
Subject:
This is optional.

Once the subject is entered (and the carriage return pressed), mail is in input mode: anything entered is part of the message. End the message by entering a . (dot) on a line by itself, or press ($<$CTL-d$>$).

At that time, a

Cc:
prompt will be displayed, allowing the sender to send copies to other users. Cc stands for Complimentary (or Courtesy) copy. Again, this is optional.

Enter a carriage return, and the piece of mail is sent out.

If the entire message has been previously created with an editor, and placed in file, it can be sent to user with

mail user $<$ file



Subsections
next up previous contents
Next: ~ r filename: Read Up: The Berkely (BSD) Mail Previous: The Berkely (BSD) Mail   Contents
Claude Cantin 2010-10-24