Function: message-mailto
message-mailto is an autoloaded, interactive and byte-compiled
function defined in message.el.gz.
Signature
(message-mailto &optional URL SUBJECT BODY FILE-ATTACHMENTS)
Documentation
Command to parse command line mailto: links.
This is meant to be used for MIME handlers: Setting the handler
for "x-scheme-handler/mailto;" to "emacs -f message-mailto %u"
will then start up Emacs ready to compose mail. For emacsclient use
emacsclient -e '(message-mailto "%u")'
To facilitate the use of this function within window systems that provide message subject, body and attachments independent of URL itself, the arguments SUBJECT, BODY and FILE-ATTACHMENTS may also provide alternative message subject and body text, which is inserted in lieu of nothing if URL does not incorporate such information itself, and a list of files to insert as attachments to the E-mail.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
;;;###autoload
(defun message-mailto (&optional url subject body file-attachments)
"Command to parse command line mailto: links.
This is meant to be used for MIME handlers: Setting the handler
for \"x-scheme-handler/mailto;\" to \"emacs -f message-mailto %u\"
will then start up Emacs ready to compose mail. For emacsclient use
emacsclient -e \\='(message-mailto \"%u\")'
To facilitate the use of this function within window systems that
provide message subject, body and attachments independent of URL
itself, the arguments SUBJECT, BODY and FILE-ATTACHMENTS may also
provide alternative message subject and body text, which is
inserted in lieu of nothing if URL does not incorporate such
information itself, and a list of files to insert as attachments
to the E-mail."
(interactive)
;; <a href="mailto:someone@example.com?subject=This%20is%20the%20subject&cc=someone_else@example.com&body=This%20is%20the%20body">Send email</a>
(message-mail)
(message-mailto-1 (or url (pop command-line-args-left))
subject body file-attachments))