From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: 29427@debbugs.gnu.org
Subject: bug#29427: Problem sending emails in message-mode after restart
Date: Fri, 24 Nov 2017 10:33:39 -0800 [thread overview]
Message-ID: <87tvxj5xx8.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87lgivfyl5.fsf@soma.i-did-not-set--mail-host-address--so-tickle-me>
Emmanuel Boudreault <emmanuel.boudreault@polymtl.ca> writes:
> Hello,
>
> I seem to be having an odd bug sending e-mails. I've configured msmtp to
> send e-mails. When I first send an e-mail in emacs, 'send-mail-function'
> isn't defined, I get a prompt, I choose transport and everything works
> as expected. The msmtp log shows that the from field is properly set to
> 'emmanuel.boudreault@polymtl.ca'. This keeps working until emacs is
> restarted.
>
> When I restart emacs, 'send-mail-function' is defined. When I try to
> send an e-mail, it fails saying the From field is incorrect. When I look
> at the From field in the msmtp log it shows that emacs generated a From
> field even though there was a valid one in the e-mail header. The From
> field is: 'manu@soma.i-did-not-set--mail-host-address--so-tickle-me'.
> The 'send-mail-function' is set to '(quote sendmail-send-it)'.
This happens when the variable `user-mail-address' is not set (or
`message-user-fqdn', or `mail-host-address'). I assume you have one of
those variables set in one of your init files, and that init file is not
automatically loaded.
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.
Anyway, if you're using something based on message-mode, you should
probably just set `message-send-mail-function' directly.
HTH,
Eric
next prev parent reply other threads:[~2017-11-24 18:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-24 16:09 bug#29427: Problem sending emails in message-mode after restart Emmanuel Boudreault
2017-11-24 18:33 ` Eric Abrahamsen [this message]
2017-11-25 17:19 ` Basil L. Contovounesios
2017-11-26 15:21 ` Basil L. Contovounesios
2017-11-26 19:33 ` Emmanuel Boudreault
2017-11-27 1:37 ` Glenn Morris
2017-11-27 23:08 ` Eric Abrahamsen
2019-09-22 23:13 ` Lars Ingebrigtsen
2019-05-13 21:11 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tvxj5xx8.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=29427@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.