Skip to main content
To send a Mail you can use a java.mail class. You need to add two jars into the WEB-INF/lib directory: mail.jar - contains the actual smtp implmentation and activation.jar - needed by mail.jar. If you are using a private tomcat You need to upload them into your global lib directory or WEB-INF/lib application directory. An example code how to use java.mail is provided below:
Email Test
SMTP Server: SMTP Port:
Username:
Password:
Subject:
Recipient: Message Body: