From 803397e58ac03aefeef3bd3390b8537af78a9d00 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 12 Mar 2013 10:00:37 -0400 Subject: Send emacs mail using a sendmail program (msmtp) --- .emacs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.emacs b/.emacs index ec87308..109d87d 100644 --- a/.emacs +++ b/.emacs @@ -75,6 +75,11 @@ ; Make 'M-x compose-mail' (C-x m), create a VM-style composition buffer (setq mail-user-agent 'vm-user-agent) +;;;; Sending mail +(setq mail-specify-envelope-from t) +(setq mail-envelope-from 'header) +(setq message-send-mail-function 'sendmail-send-it) + (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. -- cgit v1.2.3