Sending mail to an SMTP server with authentication using JavaMail
Many SMTP servers use an authentication system as an extra layer of security in their mail transport. If you need to send email to such a server with JavaMail, the library provides a convenient abstraction of the process.
Read more