• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

automated mailing functionality

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wish to make automated report generating and mailing application, can anyone help me for the same?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Mahesh Bamane
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also take alook at Quartz Project to see if it fits your needs.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Mahesh Bamane
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You have to be odd to be #1 - Seuss. An odd little ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic