From: yamaoka Date: Fri, 15 Nov 2002 08:43:35 +0000 (+0000) Subject: * smtp.el (smtp-send-buffer): Error if `smtp-server' is nil. X-Git-Tag: flim-1_14_5~2 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7a08f28e9c937096afd0edf8311f220a2a1e74a2;p=elisp%2Fflim.git * smtp.el (smtp-send-buffer): Error if `smtp-server' is nil. --- diff --git a/ChangeLog b/ChangeLog index 3f070a4..672868d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-11-15 Katsumi Yamaoka + + * smtp.el (smtp-send-buffer): Error if `smtp-server' is nil. + 2002-11-15 Yoichi NAKAYAMA * FLIM-ELS (flim-version-specific-modules): Don't install mailcap.el. diff --git a/smtp.el b/smtp.el index 4706bff..ff13f5a 100644 --- a/smtp.el +++ b/smtp.el @@ -346,7 +346,8 @@ BUFFER may be a buffer or a buffer name which contains mail message." (let ((server (if (functionp smtp-server) (funcall smtp-server sender recipients) - smtp-server)) + (or smtp-server + (error "`smtp-server' not defined")))) (package (smtp-make-package sender recipients buffer)) (smtp-open-connection-function