Function: feedmail-buffer-to-sendmail

feedmail-buffer-to-sendmail is a byte-compiled function defined in feedmail.el.gz.

Signature

(feedmail-buffer-to-sendmail PREPPED ERRORS-TO ADDR-LISTOID)

Documentation

Function which actually calls sendmail as a subprocess.

Feeds the buffer to it. Probably has some flaws for Resent-* and other complicated cases. Takes addresses from message headers and might disappoint you with Bcc: handling. In case of odd results, consult local gurus.

Source Code

;; Defined in /usr/src/emacs/lisp/mail/feedmail.el.gz
(defun feedmail-buffer-to-sendmail (prepped errors-to addr-listoid)
  "Function which actually calls sendmail as a subprocess.
Feeds the buffer to it.  Probably has some flaws for Resent-* and other
complicated cases.  Takes addresses from message headers and
might disappoint you with Bcc: handling.  In case of odd results, consult
local gurus."
  (require 'sendmail)
  (feedmail-say-debug ">in-> feedmail-buffer-to-sendmail %s" addr-listoid)
  (set-buffer prepped)
  (apply #'call-process-region
	 (append (list (point-min) (point-max) sendmail-program
		       nil errors-to nil "-oi" "-t")
		 ;; provide envelope "from" to sendmail; results will vary
		 (if feedmail-sendmail-f-doesnt-sell-me-out
		     (list "-f" user-mail-address))
		 ;; These mean "report errors by mail" and "deliver in background".
		 (if (null mail-interactive) '("-oem" "-odb")))))