If by this you mean that you want to send automatic e-mails to a list at set daily intervals (like at midnight) then JSP is not an appropriate technology choice.
What you need is either a daemon program that will run in the background and "wake up" at appropriate times to peform its function, or a small standalone application that can be triggered as a cron job.
IIUC, to create a daemon, simply write a headless app that runs in the background that checks the date every minute or so for a date change. This would be implemented in regular java, not JSP or Servlets.
I wrote an app to upload data to a database every hour, and used UNIX cron to call it. I figured that would be more reliable.
You could write all of the email code into JSP, and call the JSP using a shell script using some type of system schedule ( whether you're using Windows or UNIX ). Not pretty, but simple if you want to stick to JSP.
-------<br /> Aodhan H - Ad Astra Per Aspera<br /> -------
JSP is a request/response technology. If you just need something to connect to a database and email messages, it seems like it would be much simpler to do this from a stand alone java app. You could still allow users to edit the content from a browser with JSP by either writing the content to shared files or to a common database.
Of course you could have the best of both worlds if you put all the email functionality into a JavaBean that can be invoked from either a standalone app or a Servlet/JSP.
subject: Sending a email automatically without event