aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorSimon Josefsson <[email protected]>2003-05-13 19:48:50 +0000
committerSimon Josefsson <[email protected]>2003-05-13 19:48:50 +0000
commit11c10f3bf063c8dc18bbcc78c877116c693bda45 (patch)
tree05f8870a359339a8c65296f182c7957229660cff /lisp/mail
parent1e96c0077df6f41d0559bc41ae0009ea51a8faff (diff)
(smtpmail-open-stream): Don't hard code
starttls-program.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/smtpmail.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 2dbfa18f33..2f15ac2fe7 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -1,6 +1,6 @@
;;; smtpmail.el --- simple SMTP protocol (RFC 821) for sending mail
-;; Copyright (C) 1995, 1996, 2001, 2002 Free Software Foundation, Inc.
+;; Copyright (C) 1995, 1996, 2001, 2002, 2003 Free Software Foundation, Inc.
;; Author: Tomoji Kagatani <[email protected]>
;; Maintainer: Simon Josefsson <[email protected]>
@@ -457,7 +457,9 @@ This is relative to `smtpmail-queue-dir'.")
(let ((cred (smtpmail-find-credentials
smtpmail-starttls-credentials host port)))
(if (null (and cred (condition-case ()
- (call-process "starttls")
+ (progn
+ (require 'starttls)
+ (call-process starttls-program))
(error nil))))
;; The normal case.
(open-network-stream "SMTP" process-buffer host port)