Add a JNDI resource to provide a Java Mail Session factory

This way Gerrit can send outgoing messages through SMTP, via the
common Java Mail framework.  Server configuration is supplied by
the servlet container, avoiding the need to edit property files
within the web application.

Signed-off-by: Shawn O. Pearce <sop@google.com>
5 files changed