send
PURPOSE
Sends a message.
SYNOPSIS
send [-alias aliasfile][-draft][-draftfolder +folder]
[-draftmessage msg][-nodraftfolder][-filter filterfile]
[-nofilter][-format][-noformat][-forward][-noforward]
[-msgid][-nomsgid][-push][-nopush][-verbose][-noverbose]
[-watch][-nowatch][-width columns][file...][-help]
DESCRIPTION
The send command is used to route messages to the mail
delivery system by way of the post command or the spost
command. send is part of the MH (Message Handling)
package and can be used with other MH and AIX commands.
The send command causes From: and Date: fields to be
added to each specified message. send places the send-
er's address in the From: field unless a $SIGNATURE
environment variable is set or a signature: profile entry
is present. In either of these cases send uses the sig-
nature. send puts the current date in the Date: field.
If the dist command calls send, send prepends Resent- to
the From:, Date:, and Message-ID: fields.
The send command then takes each of the specified message
files and calls the post command or the spost command to
deliver them. After successful delivery, send renames
the message file by placing a comma in front of the file
name. This comma removes the message from the folder
without actually deleting the file. The file is retriev-
able until you send another message. If the delivery
fails, send displays an error message.
FLAGS
-alias file Specifies that file is a mail alias
file to be searched for aliases.
The default alias file is
/usr/lib/mh/MailAliases.
-draft Uses the current draft message if
no file is specified. Without this
flag, send asks the user if the
current draft message is the one to
use when no file is specified.
-draftfolder +folder Specifies the draft folder that
contains the draft message to be
sent. If -draftfolder +folder is
followed by msg, msg represents the
-draftmessage attribute.
-draftmessage msg Specifies the draft message to be
sent. You can use one of the fol-
lowing message references as msg:
num sequence first
prev cur .
next last new
The default draft message is cur.
-filter file Uses the format instructions in the
specified file to reformat copies
of the message sent to Bcc: recipi-
ents.
-format Puts all recipient addresses in a
standard format for the delivery
transport system. This flag is the
default.
-forward Adds a failure message to the draft
message and returns it to the
sender if the send command fails to
deliver the draft. This flag is
the default.
-help Displays help information for the
command.
-msgid Adds a message-identification com-
ponent (such as Message-ID:) to the
message.
-nodraftfolder Undoes the last occurrence of
-draftfolder +folder. This flag is
the default.
-nofilter Removes the Bcc: header from the
message for recipients listed in
the To: and cc: fields, and sends
the message with minimal headers to
recipients listed in the Bcc:
field. This flag is the default.
-noformat Does not alter the format of the
recipient addresses.
-noforward Does not return the draft message
to the sender if delivery fails.
-nomsgid Does not add a message-
identification component. This
flag is the default.
-nopush Runs the send command in the fore-
ground (see the -push flag). This
flag is the default.
-noverbose Does not display information during
the delivery of the message to the
sendmail command. This flag is the
default.
-nowatch Does not display information during
delivery by the sendmail command.
This flag is the default.
-push Runs the send command in the back-
ground. send does not display
error messages on the terminal if
delivery fails. You can use the
-forward flag to return messages to
you that fail on delivery.
-verbose Displays information during the
delivery of the message to the
sendmail command. This information
allows you to monitor the steps
involved.
-watch Displays information during the
delivery of the message by the
sendmail command. This information
allows you to monitor the steps
involved.
-width num Sets the width of components that
contain addresses. The default is
72 columns.
PROFILE ENTRIES
Draft-Folder: Sets your default folder for drafts.
mailproc: Specifies the program used to post
failure notices.
Path: Specifies your user_mh_directory.
postproc: Specifies the program used to post mes-
sages.
Signature: Sets your mail signature.
FILES
$HOME/.mh_profile The MH user profile.
RELATED INFORMATION
Other commands: "ali," "comp," "dist," "forw," "post,"
and "sendmail."
The mh-alias, mh-format, and mh-profile files in AIX
Operating System Technical Reference.
The "Overview of the Message Handling Package" in Man-
aging the AIX Operating System.