
How to send email from java? .For this we need an JavaMail API .Include this jar file in your class path by placing it into YourProject\WebContent\WEB-INF\lib or if you are not using EE version then add it into environment variable.
First we need to login to mail account.
Email server consist two types of port, one is for incoming mail(POP, IMAP) and another is for outgoing mail(SMTP).For...[Readmore]