
Send verification link to email or send an email for verification.
Sending an email from your java code is quite simple. If you need to send multiple emails or email for multiple users (cc/bcc) the best and simplest way is to use the already available java mail api for the purpose.
The javax.mail jar contains many classes that deals with various aspects of emailing, the MIME helps you configure properties of the email content, the BodyPart enables content to be send in body, the Message covers over all content and etc.
Now, before starting you should know about SMTP.
An SMTP stands for Simple Mail Transfer Protocol that establishes and configure the mail server, for our example we will be using easily available Gmail SMTP server. Before...