Sending Mail using (BSD) <tt>mail</tt>



next up previous contents
Next: ~ r filename: Up: Electronic Mail Previous: Internet node: Machine

Sending Mail using (BSD) 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





Super-User
Fri Feb 17 15:55:40 EST 1995