This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This is my mail sending class. I have included username and password in this class for time being for my code to get executed.
This class runs fine when i run it as java application (with main method in place).
I have include both jars - mail.jar & Activation.jar
Message message = new MimeMessage(session);
message.setSubject("Proceed To Complete Registration");
+ "\nPlease Click Link Below To Complete Registration"
+ "\nI am Very Happy");