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.
This commit is contained in:
Daniel - 2020-01-05 11:28:38 +01:00
parent a3456f7863
commit 8f3403e132
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 1 additions and 0 deletions

View File

@ -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