Forums Register Login

automated mailing functionality

+Pie Number of slices to send: Send
I wish to make automated report generating and mailing application, can anyone help me for the same?
+Pie Number of slices to send: Send
Much more could be said about these topics than can easily fit into a discussion forum. So you'll need to get a lot more detailed in what you're trying to do, and where you are stuck designing and/or implementing it.

Have you looked into reporting libraries like JasperReports (maybe in conjunction with the iReport GUI)?

Are you familiar with the JavaMail API that's used in Java to send email?
[ April 02, 2008: Message edited by: Ulf Dittmer ]
+Pie Number of slices to send: Send
Actually there is no such a problem in design, what I want that a report should be generated by the system on scheduled time and it should be sent across to everyone in the mailing list.
So here scheduling part also comes in to play.
So what I wanted to know, what kind of utilities I can really use to make this application?
+Pie Number of slices to send: Send
Besides JasperReports and JavaMail, look into the java.util.Timer and TimerTask classes. They allow you to schedule recurring code executions. Very easy to use. Or you can use a cron-like tool to periodically run a Java executable.
+Pie Number of slices to send: Send
Use windows schedular to invoke your process at specified time. For that you need to write one .bat file and configure that with windows schedular (controlpanel-->Scheduled Tasks and add new task).
.bat file is responsible for to invoke a java class at specified time and your java class will take care of rest of the things like as you said generating report and email(use java mail API) it.
+Pie Number of slices to send: Send
You can also take alook at Quartz Project to see if it fits your needs.
+Pie Number of slices to send: Send
Remember to cover the case in which the mail server you connect to is temporarily out of service. You will need some sort of try again later design.

Bill
+Pie Number of slices to send: Send
Hey! Thanks a lot for all the help, I have already tried Timer and TimerTask classes.
Windows scheduling looks a better option for me.
I'll get back here again after trying this all.
Thanks.
Die Fledermaus does not fear such a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 884 times.
Similar Threads
Test automation for Javascript
Reg: SCJP Certificate
Please Help, why this servlet is not working on mycgiserver
Sun Certified Developer
COUNTDOWN !!!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:48:28.