summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-10-25 16:03:56 +0100
committerjao <jao@gnu.org>2021-10-25 16:04:40 +0100
commit821fa0818e7120f4fe94102fe3a79153beb1acf0 (patch)
treee36d4a2358719af238afd8cb304092cb50ad2ddd
parent338d5081af3127aa98dcac368ccfbffc33a47ba7 (diff)
downloadelibs-821fa0818e7120f4fe94102fe3a79153beb1acf0.tar.gz
elibs-821fa0818e7120f4fe94102fe3a79153beb1acf0.tar.bz2
smstp support
-rw-r--r--email.org9
1 files changed, 8 insertions, 1 deletions
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