It uses JavaMail API, NetBeans IDE 7.0.1 First download the JavaMail API as shown in beginning of the video then follow the video to send email dynamically from your Gmail account. No need to open your inbox.
The EmailSender.java can be used to send email from any java program, either client based application or web based application or any java application you are developing.
My other popular video lesson –
email with attachment using javamail…