Douglas Stockwell [off-list ref] writes:
Allows username and password to be given using --smtp-user
and --smtp-pass. SSL use is flagged by --smtp-ssl. These are
backed by corresponding defaults in the git configuration file.
This implements Junio's 'mail identity' suggestion in a slightly
more generalised manner. --identity=$identity, backed by
sendemail.identity indicates that the configuration subsection
[sendemail "$identity"] should take priority over the [sendemail]
section for all configuration values.
Even better than what I suggested, doing a lot more with the
same identity mechanism. I think it often is the case that
"when I work on this project, I send e-mail as this user to talk
with that server to send e-mail, and that server happens to talk
smtps so use that", and a single "identity" setting is a good
way to capture that. Very nice.