ce298d7f740d43867282a90617476b7a0c869e27
[mmh] / man / mhmail.man1
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH MHMAIL %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 mhmail \- send mail
7 .SH SYNOPSIS
8 .HP 5
9 .na
10 .B mhmail
11 .IR addrs ...
12 .RB [ \-body
13 .IR text ]
14 .RB [ \-cc
15 .IR addrs ...]
16 .RB [ \-from
17 .IR addr ]
18 .RB [ \-subject
19 .IR subject ]
20 .RB [ \-Version ]
21 .RB [ \-help ]
22 .ad
23 .SH DESCRIPTION
24 .B mhmail
25 is intended as an
26 .BR mmh -compatible
27 replacement for the standard Berkeley
28 mail program
29 .RB ( mail
30 or
31 .BR mailx ).
32 This program is intended for the use of programs such as
33 .BR cron ,
34 which expect to send mail automatically to various
35 addresses.  It is also used by various
36 .B nmh
37 commands to mail various
38 error notifications.
39 Although
40 .B mhmail
41 can be used interactively,
42 it is recommended that
43 .B comp
44 and
45 .B send
46 be used instead to send messages.
47 .PP
48 When one or more addresses
49 are specified, a message is read from the standard input and spooled to
50 a temporary file.
51 .B mhmail
52 then invokes
53 .B spost
54 to deliver the message.
55 .PP
56 .B mhmail
57 can not be used for mal reading. Use
58 .BR inc ,
59 .BR scan ,
60 .B show
61 instead.
62 .PP
63 The
64 .B \-subject
65 .I subject
66 switch can be used to specify the
67 \*(lqSubject:\*(rq field of the message.
68 .PP
69 By default,
70 .B mhmail
71 will read the message to be sent from the
72 standard input.  You can specify the text of the message at the command
73 line with the
74 .B \-body
75 .I text
76 switch.  If the standard input has zero
77 length,
78 .B mhmail
79 will not send the message.  You can use the switch
80 .B \-body
81 \*(lq\*(rq to force an empty message.
82 .PP
83 Normally, addresses appearing as arguments are put in the \*(lqTo:\*(rq
84 field.  If the
85 .B \-cc
86 switch is used, all addresses following it are
87 placed in the \*(lqCc:\*(rq field.
88 .PP
89 By using
90 .B \-from
91 .IR addr ,
92 you can specify the \*(lqFrom:\*(rq header of
93 the draft.  Naturally,
94 .B post
95 will fill\-in the \*(lqSender:\*(rq
96 header correctly.
97
98 .SH FILES
99 .fc ^ ~
100 .nf
101 .ta \w'%etcdir%/BigFileName  'u
102 ^/tmp/mhmail*~^Temporary copy of message
103 .fi
104
105 .SH "SEE ALSO"
106 inc(1), scan(1), show(1), post(8)
107
108 .SH DEFAULTS
109 None
110
111 .SH CONTEXT
112 None