From 8f3403e1325f66d451b83b1a62d970774f57a1e0 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 5 Jan 2020 11:28:38 +0100 Subject: [PATCH] Make sure `message-mode' uses the right function to send mail Up to now, it seemed to be sufficient to set `send-mail-function' alone, but somehow some changes have made it necessary to set `message-send-mail-function' explicitly. If not done, it defaults to `message-send-mail-with-sendmail', using the sendmail exectuable to send mail. At least on my machine this results in the message being delivered to the local exim instance, which does not allow sending remote sending of mail. --- init.el | 1 + 1 file changed, 1 insertion(+) diff --git a/init.el b/init.el index f9cfc34..8537aba 100644 --- a/init.el +++ b/init.el @@ -1693,6 +1693,7 @@ With given ARG, display files in `db/important-document-path’." :around #'db/mml-attach-file--go-to-eob))) (setq notmuch-fcc-dirs nil + message-send-mail-function #'db/smtpmail-send-it send-mail-function #'db/smtpmail-send-it) (use-package smtpmail