GNU bug report logs -
#78996
29.4; Invalid authinfo credentials when sending mail through SMTP
Previous Next
Reported by: 8dcc <8dcc.lists <at> gmail.com>
Date: Sat, 12 Jul 2025 02:27:02 UTC
Severity: normal
Found in version 29.4
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: 8dcc <8dcc.git <at> gmail.com>
> Cc: 8dcc.lists <at> gmail.com, 78996 <at> debbugs.gnu.org
> Date: Sun, 20 Jul 2025 00:07:09 +0200
>
> > But I don't understand why you cannot set the value globally. It
> > isn't like you need to send mail using several different credentials
> > at the same time, is it?
>
> I understand what you mean, but permanently modifying a global variable
> because I want to send a specific mail from a specific buffer doesn't
> seem right to me. For example, some other mode that uses SMTP could ends
> up accessing that same value, and since it's not hooked, it could end up
> using the email address from that one mail that I sent an hour ago,
> which is not my main one (i.e. what used to be the global value of
> `smtpmail-smtp-user').
>
> I could perhaps save the old value in my own variable, and then restore
> it in another hook, but that's very hacky and doesn't feel right at all.
You have message-send-hook and message-sent-hook to do this.
I don't understand why this is hacky, since your original code was
also in a hook.
Anyway, I think this bug can be closed now?
This bug report was last modified 32 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.