.\" Copyright (c) 2003 by Jeremy C. Reed
.\" This software is provided "as is" without any warranties. You may
.\" redistribute and use this source, with or without modification,
.\" as long as you include this copyright and disclaimer.
.\"
.Dd November 27, 2003
.Dt MAILX.SH 1
.Os
.Sh NAME
.Nm mailx.sh ,
.Nm mailx ,
.Nm mail
.Nd send mail
.Sh SYNOPSYS
.Nm
.Op Fl s Ar subject
.Ar to-addr ...
.Sh DESCRIPTION
.Nm mailx.sh
is simple shell script to implement standard
.Xr mailx 1
functionality for sending mail.
It uses the
.Xr sendmail 8
program to route or deliver the mail.
.Pp
Unlike the normal
.Xr mailx 1 ,
this utility does not provide an interface for checking or reading
email messages.
.Pp
If the
.Ar subject
is not included as a command line argument with the
.Fl s
switch, then it will prompt for the email subject header.
.Pp
The message can be read in from standard input.
If the message is manually entered from the shell, it can be ended
with a period (.) on a line by itself or the eof (end-of-file) character
which is normally Control-D.
.Pp
And then the message is mailed
to the
.Ar to-addr
recipients.
.Pp
This version of
.Xr mailx 1
does not support the
.Fl u
or
.Fl f
options, because it is not a mail reader.

.Sh HISTORY
This simple
.Xr mailx 1
replacement was written in November 2003 by Jeremy C. Reed.
