Solved

automated emails

Posted on 2007-03-19
6
227 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
ID: 18753329
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
ID: 18753954
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
ID: 18753972
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:steadfast9661
ID: 18754136
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
ID: 18754238
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:Mayank S
Mayank S earned 250 total points
ID: 18756935
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
network + 7 80
java  and programming certification ? 4 86
Java passing arguments (type error) 2 48
windows explorer path to command prompt 5 29
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.

914 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

15 Experts available now in Live!

Get 1:1 Help Now