Next: , Previous: , Up: The MH-E Manual   [Contents][Index]

8 Sending Mail

You can send a mail message in several ways. You can call M-x mh-smail directly, or from the command line like this:

$ emacs -f mh-smail

There are some commands that need to send a mail message, such as goto-address-at-point. You can configure Emacs to have these commands use MH-E by setting the option mail-user-agent to ‘Emacs interface to MH’.

From within MH-E’s MH-Folder mode, other methods of sending mail are available as well. These can also be found in the ‘Message’ menu.


Edit a message to send it again (mh-edit-again).


Edit a message that was returned by the mail system (mh-extract-rejected-mail).


Forward message (mh-forward).


Reply to a message (mh-reply).


Compose a message (mh-send).


Redistribute a message (mh-redistribute).

M-x mh-smail

Compose a message with the MH mail system.

M-x mh-smail-other-window

Compose a message with the MH mail system in other window.

In addition, several options from the ‘mh-sending-mail’ customization group are useful when sending mail or replying to mail. They are summarized in the following table.


On means that messages are forwarded as attachments (default: ‘on’).


Hook run when starting a new draft (default: nil).


On means prompt for header fields when composing a new draft (default: ‘off’).


Format string for forwarded message subject (default: "%s: %s").


On means append an ‘X-Mailer:’ header field to the header (default: ‘on’).


On means the dist command needs entire letter for redistribution (default: ‘off’).


Sets the person or persons to whom a reply will be sent (default: ‘Prompt’).


On means the MH-Show buffer is displayed using r (mh-reply) (default: ‘on’).

The following hooks are available.


Hook run by mh-annotate-msg after annotation (default: nil).


Hook run by mh-forward on a forwarded letter (default: nil).


Hook run by mh-letter-mode on a new letter (default: nil).

A hook that is called whenever a message is sent and after the scan lines and message are annotated is mh-annotate-msg-hook. Hook functions can access the current folder name with mh-current-folder and obtain the message numbers of the annotated messages with mh-annotate-list.

The rest of the functions and options introduced here are explained in more detail in the following sections.

Next: Editing a Draft, Previous: Organizing Your Mail with Folders, Up: The MH-E Manual   [Contents][Index]