Subject: Re: bug#29427: Problem sending emails in message-mode after restart

From: "Basil L. Contovounesios" <[email-masked]>
Date: Sat, 25 Nov 2017 17:19:57 +0000

Eric Abrahamsen <[email-masked]> writes:

> Emmanuel Boudreault <[email-masked]> writes:
>
>> When I first send an e-mail in emacs, 'send-mail-function'
>> isn't defined [...]
>
> I'm not sure how `send-mail-function' comes into it, and am a bit
> confused by your report: you say when you first send an email in emacs,
> it isn't set, but later say when you restart emacs, it is defined.

Actually Emmanuel is saying the opposite, namely that
`send-mail-function' is somehow undefined until restarting
Emacs.  My issue with this is that `send-mail-function'
should always be defined as either `sendmail-send-it' or
`sendmail-query-once' when starting Emacs with the -Q flag,
in all versions of Emacs until at least as far back as 23.
Perhaps some custom configuration code or package is
misbehaving?

> Anyway, if you're using something based on message-mode, you should
> probably just set `message-send-mail-function' directly.

+1

-- 
Basil