We want to send mail from inside my tomcat web application.
I inherited some code from a predecessor that uses a context configuration file inside tomcat to define the data source that I use in my application through a JNDI lookup. This file currently looks like this:
I have never been able to find documentation for this and never met the guy who did it so I don't really understand it, I simply know that it works.
This morning, it occurred to me that I could use the same tools to configure the mail server. Does anyone know how to do this inside the context configuration file?
以上就是Javamail as JNDI resource in tomcat的详细内容,更多请关注web前端其它相关文章!