From 821fa0818e7120f4fe94102fe3a79153beb1acf0 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 25 Oct 2021 16:03:56 +0100 Subject: smstp support --- email.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/email.org b/email.org index c74ee35..ca16c09 100644 --- a/email.org +++ b/email.org @@ -179,7 +179,14 @@ (setq smtpmail-smtp-server "127.0.0.1") (setq smtpmail-smtp-service 25)) - (jao-sendmail-local) + (defun jao-sendmail-msmtp () + (setq send-mail-function 'sendmail-send-it + sendmail-program "/usr/bin/msmtp" + mail-specify-envelope-from t + message-sendmail-envelope-from 'header + mail-envelope-from 'header)) + + (jao-sendmail-msmtp) #+end_src * mailcap #+begin_src emacs-lisp -- cgit v1.2.3