Function: smtpmail-send-data
smtpmail-send-data is a byte-compiled function defined in
smtpmail.el.gz.
Signature
(smtpmail-send-data PROCESS BUFFER)
Source Code
;; Defined in /usr/src/emacs/lisp/mail/smtpmail.el.gz
(defun smtpmail-send-data (process buffer)
(let ((data-continue t)
(pr (with-current-buffer buffer
(make-progress-reporter "Sending email "
(point-min) (point-max))))
sending-data)
(with-current-buffer buffer
(goto-char (point-min)))
(while data-continue
(with-current-buffer buffer
(progress-reporter-update pr (point))
(setq sending-data (buffer-substring (line-beginning-position)
(line-end-position)))
(end-of-line 2)
(setq data-continue (not (eobp))))
(smtpmail-send-data-1 process sending-data))
;; DATA end "."
(smtpmail-command-or-throw process ".")
(progress-reporter-done pr)))