[Top][All Lists]

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

Re: smtpmail vs msmtp

From: Eric Abrahamsen
Subject: Re: smtpmail vs msmtp
Date: Thu, 01 Aug 2019 15:21:45 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Štěpán Němec <> writes:

> On Thu, 01 Aug 2019 13:44:21 -0700
> Eric Abrahamsen wrote:
>> I'm using smtp with multiple accounts, and a `message-send-mail-hook'
>> that sets the msmtp account based on the From header. Is that still the
>> way everyone is doing it? Is there anything simpler for handling
>> multiple accounts?
> I'm also using multiple accounts and all I'm doing to that end on Emacs
> side seems to be the following:
> (setq send-mail-function 'message-send-mail-with-sendmail
>       message-send-mail-function 'message-send-mail-with-sendmail
>       sendmail-program "/usr/bin/msmtp"
>       message-sendmail-envelope-from 'header
>       message-sendmail-f-is-evil nil)
> I.e., I let msmtp pick the account based on the From header.

Crap, really? I've got this unwieldy thing that sets the account using
`message-sendmail-extra-arguments', I wonder if that's just not
necessary at all. I'll try removing it.

Thanks for the tip,

reply via email to

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