MHMAIL(1mh)

NAME
mhmail - send mail (mailx replacement)

SYNOPSIS

mhmail addrs... [-cc addrs...] [-from addr] [-subject subject] [-bodytext text] [-Version] [-help]

DESCRIPTION
mhmail is inspired by the standard Berkeley mail program (mail or mailx). It should not be seen as a drop-in replacement for these programs, but rather as a more convenient alternative to comp for non-interactive use. For interactive use, comp and send are recommended over mhmail.

When one or more addresses are specified, a message is read from the standard input and spooled to a temporary file. mhmail then invokes spost to deliver the message.

mhmail can not be used for mal reading. Use inc, scan, show instead.

The -subject subject switch can be used to specify the `Subject:' field of the message.

By default, mhmail will read the message to be sent from the standard input. The message is terminated by either end-of-file or by a single period alone on a line. This is compatible to mail and mailx. Alternatively, you can specify the text of the message at the command line with the -bodytext text switch.

If the standard input has zero length, mhmail will not send the message. You can use -bodytext "" to force an empty message.

Normally, addresses appearing as arguments are put in the `To:' field. If the -cc switch is used, all addresses following it are placed in the `Cc:' field.

By using -from addr, you can specify the `From:' header of the draft. Naturally, post will fill-in the `Sender:' header correctly.

FILES
^/tmp/mhmail*~^Temporary copy of message

SEE ALSO
inc(1), scan(1), show(1), post(8)

DEFAULTS
None

CONTEXT
None

HISTORY
mhmail was intended as a replacement for the standard Berkeley mail program (mail or mailx), which is compatible with mmh. This program was intended for the use of programs such as cron, which expect to send mail automatically to various addresses. It was also used by various mmh commands to mail various error notifications.

When invoked without arguments, it had once simply invoked inc to incorporate new messages from the user's maildrop. It does this no longer.

BUGS
mhmail should no longer try to replace mailx, but become a mail sending front-end to comp or send, which is more convenient in some situations.