Tags: patch Tags: patch Hi, the below patch should allow for multiple mail accounts being configured for smtpmail.el, without having to use tricks like X-Message-SMTP-Method, that only work when the MUA also inserts them at the right time. This is an initial patch, and everything seems to work on my end. I had a little issue with the indentation, because Emacs re-indented everything at first, but I didn't want to send a patch consisting of mainly unrelated whitespace changes. In GNU Emacs 28.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-11-30 built on viero Repository revision: c4daff9cf844ec85930bdcd2064787c92c260861 Repository branch: emacs-28 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 Configured using: 'configure CC=gcc PKG_CONFIG_PATH=/gnu/store/sfqc239vzd9d1hxmnvav385x1nl9zx5d-profile/lib/pkgconfig:/gnu/store/sfqc239vzd9d1hxmnvav385x1nl9zx5d-profile/share/pkgconfig:/home/philip/.guix-profile/lib/pkgconfig:/home/philip/.guix-profile/share/pkgconfig:/home/philip/.guix-profile/lib/pkgconfig:/home/philip/.guix-profile/share/pkgconfig'