Are you using the mailer plugin or the email extension plugin?
I guess if you haven’t configured anything regarding the user sending the mail, the user could maybe be extracted from System Admin e-mail address configured in Jenkins?
Randomly I found out, that the list of systems credentials for smtp authentication (a drop down list) is handled in a reverse way. If I want the first entry of the list I have to pick the last entry. Very strange.
My credentials are reported as not being used, even though I have very explicitly specified it. I have tried credentials with every possible scope and domain.
This is failing for both the standard email plugin and the extended email plugin.
It all worked smoothly 4 years or so ago when Jenkins was first set up. then it was disabled for several years and so I am having to set it all up again, and of course it is a newer and broken version now.