Configure --without-sendmail (fixes #63891)

Adds --with[out]-sendmail although --with-sendmail will still
exclude sendmail functionality silently if the executable is not
found in the path. This is to maintain backwards compatibility.

I personally feel we should make sendmail required unless
--without-sendmail is used, but making an optional dependency
mandatory is not in the scope of this pull request.