Added mail session JNDI factory

also, replaced internal mail sender by use of the new provider.