diff options
author | Simon Josefsson <jas@extundo.com> | 2003-05-13 19:48:50 +0000 |
---|---|---|
committer | Simon Josefsson <jas@extundo.com> | 2003-05-13 19:48:50 +0000 |
commit | 11c10f3bf063c8dc18bbcc78c877116c693bda45 (patch) | |
tree | 05f8870a359339a8c65296f182c7957229660cff /lisp/mail | |
parent | 1e96c0077df6f41d0559bc41ae0009ea51a8faff (diff) | |
download | emacs-11c10f3bf063c8dc18bbcc78c877116c693bda45.tar.gz |
(smtpmail-open-stream): Don't hard code
starttls-program.
Diffstat (limited to 'lisp/mail')
-rw-r--r-- | lisp/mail/smtpmail.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 2dbfa18f33a..2f15ac2fe73 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 <kagatani@rbc.ncl.omron.co.jp> ;; Maintainer: Simon Josefsson <simon@josefsson.org> @@ -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) |