Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


automated emails

Posted on 2007-03-19
Medium Priority
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

Question by:steadfast9661
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
LVL 16

Expert Comment

ID: 18753329

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


Author Comment

ID: 18753954
is Java not capable of tracking time on its own? Any ideas on how i can get this started?
LVL 16

Expert Comment

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?

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 18754136
desktop app, i can use anything i want. Its just for sending out patching notices to clients.
LVL 16

Accepted Solution

suprapto45 earned 1000 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

LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 1000 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:

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

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

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…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

670 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