Function: sendmail-query-once
sendmail-query-once is an autoloaded and byte-compiled function
defined in sendmail.el.gz.
Signature
(sendmail-query-once)
Documentation
Query for send-mail-function and send mail with it.
This also saves the value of send-mail-function via Customize.
Probably introduced at or before Emacs version 24.1.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/sendmail.el.gz
;;;###autoload
(defun sendmail-query-once ()
"Query for `send-mail-function' and send mail with it.
This also saves the value of `send-mail-function' via Customize."
;; If send-mail-function is already setup, we're incorrectly called
;; a second time, probably because someone's using an old value
;; of send-mail-function.
(if (not (eq send-mail-function #'sendmail-query-once))
(funcall send-mail-function)
(let ((function (sendmail-query-user-about-smtp)))
(funcall function)
(when (y-or-n-p "Save this mail sending choice?")
(setq send-mail-function function)
(customize-save-variable 'send-mail-function function)))))