summaryrefslogtreecommitdiff
path: root/lisp/gnus/message.el
diff options
context:
space:
mode:
authorReiner Steib <Reiner.Steib@gmx.de>2007-11-21 07:45:36 +0000
committerReiner Steib <Reiner.Steib@gmx.de>2007-11-21 07:45:36 +0000
commitb62a39c41d4b2a0f04207449edfb647118ce0568 (patch)
tree91af4e8333285aa38555a3d9ef8b422b6c03b2e9 /lisp/gnus/message.el
parentd4aa48db8ed36b1fc7e7b0e6bd35049353f7f96e (diff)
downloademacs-b62a39c41d4b2a0f04207449edfb647118ce0568.tar.gz
(message-send-mail-function): Require sendmail.
Diffstat (limited to 'lisp/gnus/message.el')
-rw-r--r--lisp/gnus/message.el4
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")