Solved

automated emails

Posted on 2007-03-19
6
217 Views
Last Modified: 2010-03-31
was wondering how hard it would be, or even possible in java to automate emails at a specific time.

Mail client A at x time on y date

Mail client b at x time on y date


etc...
0
Comment
Question by:steadfast9661
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:suprapto45
Comment Utility
Yep,

That should be doable. You should use a kind of Timer to do that. I think that Quartz should help you doing that.

http://www.opensymphony.com/quartz/

David
0
 

Author Comment

by:steadfast9661
Comment Utility
is Java not capable of tracking time on its own? Any ideas on how i can get this started?
0
 
LVL 16

Expert Comment

by:suprapto45
Comment Utility
Is this web application or Desktop Application (J2SE)? As far as I know, there is a Timer class in Java itself but I never used it.

I still prefer Quartz. Do you have any constraint(s) to use 3rd party lib?

David
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:steadfast9661
Comment Utility
desktop app, i can use anything i want. Its just for sending out patching notices to clients.
0
 
LVL 16

Accepted Solution

by:
suprapto45 earned 250 total points
Comment Utility
I prefer Quartz on web application.

For desktop app, you can use Timer class which has been part of jdk 1.4.2.

This should get you started
http://www.exampledepot.com/egs/java.util/ScheduleLater.html?l=rel

David
0
 
LVL 30

Assisted Solution

by:mayankeagle
mayankeagle earned 250 total points
Comment Utility
Yes, you can use the Timer class. For sending e-mails, you will need to download the Java mail API along with Java beans activation framework. Download from:

http://java.sun.com/products/javamail/

http://java.sun.com/products/javabeans/jaf/downloads/index.html

Have a look at the sample for sending e-mail:

http://www.exampledepot.com/egs/javax.mail/SendApp.html?l=new
 
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now