Variable: message-send-mail-function
message-send-mail-function is a customizable variable defined in
message.el.gz.
Value
sendmail-query-once
Documentation
Function to call to send the current buffer as mail.
The headers should be delimited by a line whose contents match the
variable mail-header-separator.
Valid values include message-send-mail-with-sendmail
message-send-mail-with-mh, message-send-mail-with-qmail,
message-smtpmail-send-it, smtpmail-send-it,
feedmail-send-it and message-send-mail-with-mailclient. The
default is system dependent and determined by the function
message-send-mail-function(var)/message-send-mail-function(fun).
See also send-mail-function.
This variable was added, or its default value changed, in Emacs 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
;; Useful to set in site-init.el
(defcustom message-send-mail-function #'message--default-send-mail-function
"Function to call to send the current buffer as mail.
The headers should be delimited by a line whose contents match the
variable `mail-header-separator'.
Valid values include `message-send-mail-with-sendmail'
`message-send-mail-with-mh', `message-send-mail-with-qmail',
`message-smtpmail-send-it', `smtpmail-send-it',
`feedmail-send-it' and `message-send-mail-with-mailclient'. The
default is system dependent and determined by the function
`message-send-mail-function'.
See also `send-mail-function'."
:type '(radio (function-item message--default-send-mail-function)
(function-item message-send-mail-with-sendmail)
(function-item message-send-mail-with-mh)
(function-item message-send-mail-with-qmail)
(function-item message-smtpmail-send-it)
(function-item :doc "Use SMTPmail package." smtpmail-send-it)
(function-item feedmail-send-it)
(function-item message-send-mail-with-mailclient)
(function :tag "Other"))
:group 'message-sending
:version "27.1"
:initialize #'custom-initialize-default
:link '(custom-manual "(message)Mail Variables")
:group 'message-mail)