How to write a mail application with java mail API that run all time at glassfish server and search a specific time in the database and send mail at that time. i have web application written in JSF that need to send mail at specific time given in database.
Share
For gmail, use below code
Below are list of jar files you will need
To send from other server, you will need to do changes at below line