From edfbf83b7d11d72de9bbaaefdab16a0740a79298 Mon Sep 17 00:00:00 2001 From: mms Date: Wed, 24 Jan 2024 11:59:04 +0100 Subject: email sendout --- mms-misc.org | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'mms-misc.org') diff --git a/mms-misc.org b/mms-misc.org index cb7b1be..d0a3d2b 100644 --- a/mms-misc.org +++ b/mms-misc.org @@ -54,9 +54,29 @@ You can find my guide on my [[https://michal.sapka.me/emacs/notmuch/][emacs site "m m" '(lambda () (interactive) (notmuch-hello) :wk "Notmuch hello")) #+end_src -** TODO composing +** composing + +I use =msmtp= for email sendout. +In near future I'll move to =mstmtp-queue=, but for now I need basic setup. + +I set up =mms-email-address= in my config_local.el, as it changes between machines and is private + +#+begin_src emacs-lisp + (setq send-mail-function 'sendmail-send-it + user-mail-address mms-email-address + sendmail-program "/usr/local/bin/msmtp" + mail-specify-envelope-from t + message-sendmail-envelope-from 'header + mail-envelope-from 'header) +#+end_src + +#+begin_src emacs-lisp + (mms-leader-keys + "m c" '(lambda () (interactive) (compose-mail) :wk "compose email")) +#+end_src * Demos + #+begin_src emacs-lisp (use-package demo-it :ensure t) -- cgit v1.2.3