Next: , Previous: , Up: Top   [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.

e

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

E

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

f

Forward message (mh-forward).

r

Reply to a message (mh-reply).

s

Compose a message (mh-send).

M-d

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.

mh-compose-forward-as-mime-flag

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

mh-compose-letter-function

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

mh-compose-prompt-flag

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

mh-forward-subject-format

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

mh-insert-x-mailer-flag

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

mh-redist-full-contents-flag

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

mh-reply-default-reply-to

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

mh-reply-show-message-flag

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

The following hooks are available.

mh-annotate-msg-hook

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

mh-forward-hook

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

mh-letter-mode-hook

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: , Previous: , Up: Top   [Contents][Index]