- Add the following to your web.xml file (insert it just before </web-app>):
- Add the following to your server.xml file (anywhere inside the <context ...> tags)
For Tomcat 5.0.xYou only need to specify theFor Tomcat 5.5.x
mail.smtp.portparameter if you are using a non-standard port for SMTP. - Restart the server. Go to create SMTP mail server screen. For JNDI location, enter:
java:comp/env/mail/Session
Labels






