help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to dynamically select msmtp profile when sending a message?


From: Bob Newell
Subject: Re: How to dynamically select msmtp profile when sending a message?
Date: Thu, 13 Jun 2024 19:32:50 -1000

FWIW, I can confirm that the "secret sauce" is

    (setq message-send-mail-function 'message-send-mail-with-sendmail
       message-sendmail-f-is-evil 't
       sendmail-program "/usr/bin/msmtp"
       message-sendmail-extra-arguments '("--read-envelope-from")
       )

which is similar to that shown above (your msmtp path of course may vary).
I've successfully used msmtp with Emacs/gnus for years with a ridiculous
number of email addresses and accounts.  (It can actually be lots of fun,
especially if used in combination with gnus aliases.)
Bob Newell
Honolulu


reply via email to

[Prev in Thread] Current Thread [Next in Thread]