Variable: send-mail-function

send-mail-function is a customizable variable defined in sendmail.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 which is not a valid RFC 822 (or later) header or continuation line, that matches the variable mail-header-separator. This is used by the default mail-sending commands. See also message-send-mail-function(var)/message-send-mail-function(fun) for use with the Message package.

This variable was added, or its default value changed, in Emacs 24.1.

View in manual

Probably introduced at or before Emacs version 24.1.

Source Code

;; Defined in /usr/src/emacs/lisp/mail/sendmail.el.gz
;; Useful to set in site-init.el
;;;###autoload
(defcustom send-mail-function
  ;; Assume smtpmail is the preferred choice if it's already configured.
  (if (and (boundp 'smtpmail-smtp-server)
           smtpmail-smtp-server)
      #'smtpmail-send-it #'sendmail-query-once)
  "Function to call to send the current buffer as mail.
The headers should be delimited by a line which is
not a valid RFC 822 (or later) header or continuation line,
that matches the variable `mail-header-separator'.
This is used by the default mail-sending commands.  See also
`message-send-mail-function' for use with the Message package."
  :type '(radio (function-item sendmail-send-it)
                (function-item sendmail-query-once)
                (function-item :doc "Use SMTPmail package." smtpmail-send-it)
                (function-item feedmail-send-it)
                (function-item mailclient-send-it)
		function)
  :version "24.1")