I have a requirement like this. A java program should run always, which will check the dates from the database and based on the deadlines it should send mails with attachment(zip file) to appropriate email IDs.
Database part is pretty simple and I have coded them. Now I need to use Java mail API to send mails. But I never used it before.So can any one tell me about Java Mail API and how to send mails with attachments using it.
Also do I need to have any SMTP servers in my system?. If so, can anyone tell me some downloadable free SMTP servers which can be used for this purpose.