diff options
Diffstat (limited to 'lisp/gnus/message.el')
| -rw-r--r-- | lisp/gnus/message.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 157c6f08b19..ef49e29d2cb 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -625,7 +625,9 @@ Done before generating the new subject of a forward." (defun message-send-mail-function () "Return suitable value for the variable `message-send-mail-function'." - (cond ((and sendmail-program + (cond ((and (require 'sendmail) + (boundp 'sendmail-program) + sendmail-program (executable-find sendmail-program)) 'message-send-mail-with-sendmail) ((and (locate-library "smtpmail") |
