Function: message-mailto
message-mailto is an interactive and byte-compiled function defined in
message.el.gz.
Signature
(message-mailto &optional URL)
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")'
Probably introduced at or before Emacs version 28.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
;;;###autoload
(defun message-mailto (&optional url)
"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\")'"
(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))))