Create SendMail.java

Send an E-mail from java web application:
Here is an example to send an HTML email from your machine. Here it is assumed that your localhost is connected to the internet and capable enough to send an email.