aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/sendmail.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 0f697450c5a..89fcfa2f478 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -551,6 +551,9 @@ the user from the mailer."
551;; This does the real work of sending a message via sendmail. 551;; This does the real work of sending a message via sendmail.
552;; It is called via the variable send-mail-function. 552;; It is called via the variable send-mail-function.
553 553
554(defvar sendmail-coding-system 'coding-system-iso-2022-7
555 "Coding system to which to encode the mail.")
556
554(defun sendmail-send-it () 557(defun sendmail-send-it ()
555 (require 'mail-utils) 558 (require 'mail-utils)
556 (let ((errbuf (if mail-interactive 559 (let ((errbuf (if mail-interactive
@@ -691,7 +694,8 @@ the user from the mailer."
691 (re-search-forward "^To:\\|^cc:\\|^bcc:\\|^resent-to:\ 694 (re-search-forward "^To:\\|^cc:\\|^bcc:\\|^resent-to:\
692\\|^resent-cc:\\|^resent-bcc:" 695\\|^resent-cc:\\|^resent-bcc:"
693 delimline t)) 696 delimline t))
694 (let ((default-directory "/")) 697 (let ((default-directory "/")
698 (coding-system-for-write sendmail-coding-system))
695 (apply 'call-process-region 699 (apply 'call-process-region
696 (append (list (point-min) (point-max) 700 (append (list (point-min) (point-max)
697 (if (boundp 'sendmail-program) 701 (if (boundp 'sendmail-program)