Solved

automated emails

Posted on 2007-03-19
6
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
by zero exception 10 83
jsp error 6 70
Strange router problem - can't access hotmail.com 14 108
convert Absolute path to relative path of FTP location 7 50
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

734 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