Here??™s a demonstration of one way to run sendmail by hand. First create a file named
sendstuff with the following contents:
This is a one-line message.
Second, mail this file to yourself with the following command line, where you is your
login name:
% /usr/sbin/sendmail you
Here, you run sendmail directly by specifying its full pathname.* When you run sendmail,
any command-line arguments that do not begin with a - character are considered
to be the names of the people to whom you are sending the mail message.
The to be redirected into the sendmail program. The sendmail program treats everything
it reads from its standard input (up to the end of the file) as the mail message
to transmit.??
Now view the mail message you just sent. How you do this will vary. Many users just
type mail to view their mail. Others use the mh(1) package and type inc to receive
and show to view their mail. No matter how you normally view your mail, save the
mail message you just received to a file. It will look something like this:
From you@Here.US.EDU Fri Dec 14 08:11:44 2007
Received: (from you@localhost)
by Here.US.EDU (8.12.7/8.12.7)
id d8BILug12835 for you; Fri, 14 Dec 2007 08:11:44 -0600 (MDT)
Date: Fri, 14 Dec 2007 08:11:43
From: you@Here.
Pages:
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48