如何使用ssmtp提交你的port( 二 )


"feedmail-mail-send-hook-splitter)

(setq feedmail-buffer-eating-function
"feedmail-buffer-to-ssmtp)

(setq feedmail-ssmtp-template
"/usr/local/sbin/ssmtp -v -t
-au xxxxx -ap xxxxxxxxxx")

(defun feedmail-buffer-to-ssmtp (prepped errors-to addr-listoid)
"Function which actually calls ssmtp as a subprocess.
Feeds the buffer to it.
derived from feedmail-buffer-to-binmail"
(set-buffer prepped)
(apply
"call-process-region
(append (list (point-min) (point-max)
"/bin/sh" nil errors-to nil "-c"
(format feedmail-ssmtp-template)))))

使用其它mail client的BSDer也应该有办法,只要把信件的内容做为stdin传给 ssmtp就可以了.

推荐阅读