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.

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 :tag "Use Sendmail package")
		(function-item sendmail-query-once :tag "Query the user")
		(function-item smtpmail-send-it :tag "Use SMTPmail package")
		(function-item feedmail-send-it :tag "Use Feedmail package")
		(function-item mailclient-send-it :tag "Use Mailclient package")
		function)
  :version "24.1")