Function: mh-send

mh-send is an autoloaded, interactive and byte-compiled function defined in mh-comp.el.gz.

Signature

(mh-send TO CC SUBJECT)

Documentation

Compose a message.

Your letter appears in an Emacs buffer whose mode is MH-Letter (see mh-letter-mode).

The arguments TO, CC, and SUBJECT can be used to prefill the draft fields or suppress the prompts if mh-compose-prompt-flag is on. They are also passed to the function set in the option mh-compose-letter-function.

See also mh-insert-x-mailer-flag and mh-letter-mode-hook.

Outside of an MH-Folder buffer (mh-folder-mode), you must call either M-x mh-smail (mh-smail) or M-x mh-smail-other-window (mh-smail-other-window) to compose a new message.

Key Bindings

Aliases

mh-alt-send

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-comp.el.gz
;;;###mh-autoload
(defun mh-send (to cc subject)
  "Compose a message.

Your letter appears in an Emacs buffer whose mode is
MH-Letter (see `mh-letter-mode').

The arguments TO, CC, and SUBJECT can be used to prefill the
draft fields or suppress the prompts if `mh-compose-prompt-flag'
is on. They are also passed to the function set in the option
`mh-compose-letter-function'.

See also `mh-insert-x-mailer-flag' and `mh-letter-mode-hook'.

Outside of an MH-Folder buffer (`mh-folder-mode'), you must call
either \\[mh-smail] or \\[mh-smail-other-window] to compose a new
message."
  (interactive (list
                (mh-interactive-read-address "To: ")
                (mh-interactive-read-address "Cc: ")
                (mh-interactive-read-string "Subject: ")))
  (let ((config (current-window-configuration)))
    (delete-other-windows)
    (mh-send-sub to cc subject config)))