Solved

automated emails

Posted on 2007-03-19
6
262 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

627 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