my dog learned polymorphism*
The moose likes Java in General and the fly likes automated mailing functionality Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "automated mailing functionality" Watch "automated mailing functionality" New topic
Author

automated mailing functionality

Mahesh Bamane
Ranch Hand

Joined: Mar 12, 2008
Posts: 66
I wish to make automated report generating and mailing application, can anyone help me for the same?


There is nothing like trying, either you do it or you don't.
SCJP 1.5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
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 ]

Ping & DNS - updated with new look and Ping home screen widget
Mahesh Bamane
Ranch Hand

Joined: Mar 12, 2008
Posts: 66
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?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
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.
Sirish Kumar Gongal Reddy
Ranch Hand

Joined: Oct 25, 2004
Posts: 109
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.
Manuel Leiria
Ranch Hand

Joined: Jul 13, 2007
Posts: 171
You can also take alook at Quartz Project to see if it fits your needs.


Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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


Java Resources at www.wbrogden.com
Mahesh Bamane
Ranch Hand

Joined: Mar 12, 2008
Posts: 66
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: automated mailing functionality
 
Similar Threads
Reg: SCJP Certificate
Sun Certified Developer
Please Help, why this servlet is not working on mycgiserver
COUNTDOWN !!!
Test automation for Javascript