Variable: sendmail-program
sendmail-program is a customizable variable defined in sendmail.el.gz.
Value
"sendmail"
Documentation
Program used to send messages.
If the program returns a non-zero error code, or outputs any text, sending is considered "failed" by Emacs.
This variable was added, or its default value changed, in Emacs 24.1.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/sendmail.el.gz
(defcustom sendmail-program
(or (executable-find "sendmail")
(cond
((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
(t "sendmail")))
"Program used to send messages.
If the program returns a non-zero error code, or outputs any
text, sending is considered \"failed\" by Emacs."
:version "24.1" ; add executable-find, remove fakemail
:type 'file)