It is very simple to send email with Java Servlet using the Java Mail API and Java Activation Framework. This API provides classes that can be used to send simple emails. Today we have scripted an Email Sending Application with Java Servlet and JSP. You simply need an Internet connection to send email using this simple Application.
Those who work with IDE (Eclipse or NetBeans) you can simply create a Java Web Application, and copy-paste the index.html file into index.jsp file. Then create a new Java Servlet into Source Package, name it SendMail.java and replace its code with SendMail.java file of this Script. That's it you are good to go, use it to send emails.
This script is currently configured to send emails using GMAIL ID's only. To use other email address, you simply need to add SMTP addresses of the respective email service into SendMail.java servlet.
We hope you like this awesome script, do comment if you face any problem. And don't forget to share this amazing and simple application. We will come up with more JSP-servlet scripts in the future.