]> git.eshelyaron.com Git - emacs.git/commitdiff
(message-send-mail-function): Check for smtpmail too.
authorReiner Steib <Reiner.Steib@gmx.de>
Tue, 20 Nov 2007 21:49:06 +0000 (21:49 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Tue, 20 Nov 2007 21:49:06 +0000 (21:49 +0000)
lisp/gnus/ChangeLog
lisp/gnus/message.el

index dd8b059c55d88ebe3286476aa9e16ee2a17b0dd1..8bd32cfc6677b406517603e7a54afdaba207f5e6 100644 (file)
@@ -1,5 +1,7 @@
 2007-11-20  Reiner Steib  <Reiner.Steib@gmx.de>
 
+       * message.el (message-send-mail-function): Check for smtpmail too.
+
        * utf7.el (utf7-encode, utf7-decode): Use coding system
        `utf-7'/`utf-7-imap' from utf-7.el' if available.
 
index 66e14f0e0915d5f24f7f8fded73a1cfebb29a534..51408995efc87172f4d32946e427228b10b511ad 100644 (file)
@@ -624,13 +624,17 @@ 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
-             (executable-find program))
+             (executable-find sendmail-program))
         'message-send-mail-with-sendmail)
-       ((and (locate-library "mailclient")
-             (memq system-type '(darwin windows-nt)))
+       ((and (locate-library "smtpmail")
+             (require 'smtpmail)
+             smtpmail-default-smtp-server)
+        'message-smtpmail-send-it)
+       ((locate-library "mailclient")
         'message-send-mail-with-mailclient)
        (t
-        'message-smtpmail-send-it)))
+        (lambda ()
+          (error "Don't know how to send mail.  Please customize `message-send-mail-function'.")))))
 
 ;; Useful to set in site-init.el
 (defcustom message-send-mail-function (message-send-mail-function)