(message-send-mail-with-smtp): Use `smtp-send-buffer' if it exists instead of
authoryamaoka <yamaoka>
Tue, 21 Nov 2000 01:51:23 +0000 (01:51 +0000)
committeryamaoka <yamaoka>
Tue, 21 Nov 2000 01:51:23 +0000 (01:51 +0000)
 `smtp-via-smtp'.

ChangeLog
lisp/message.el

index ff363b5..85a3dad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-21  Katsumi Yamaoka <yamaoka@jpl.org>
+
+       * lisp/message.el (message-send-mail-with-smtp): Use
+       `smtp-send-buffer' if it exists instead of `smtp-via-smtp'.
+
 2000-11-16  Katsuhiro Hermit Endo  <hermit@koka-in.org>
 
        * texi/gnus-ja.texi (Drafts): Fix typo.
index fc8cf0c..e10caf1 100644 (file)
@@ -3069,9 +3069,12 @@ to find out how to use this."
     (backward-char 1)
     (run-hooks 'message-send-mail-hook)
     (if recipients
-       (let ((result (smtp-via-smtp user-mail-address
-                                    recipients
-                                    (current-buffer))))
+       (let ((result (static-if (fboundp 'smtp-send-buffer)
+                         (smtp-send-buffer user-mail-address recipients
+                                           (current-buffer))
+                       (smtp-via-smtp user-mail-address
+                                      recipients
+                                      (current-buffer)))))
          (unless (eq result t)
            (error "Sending failed; " result)))
       (error "Sending failed; no recipients"))))