Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Send an email on timer  RSS feed

 
Ravi Pandya
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have one requirement.

I have an UI in that user will select times like 7:00, 7:30 and so on.

and based on the I have to send an email on those times.

if user select automatically then I have to send an email on every half an hour.

Help me on this.
I did some homework, but no use

So if you have any code or any way to make this, Please explain to me


Thanks in Adv.
 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about using Quartz? You can feed the times via your program to send mails at specified intervals.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the java.util.Timer and TimerTask classes.
 
Ravi Pandya
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

If I choose timer or quartz then I have to create around 200 object of each.

because I want to do something like this. User will select time like 7:05, 7:10, 7:20 something like this.

And I have to send an email on that time.

Thanks.
 
Ravi Pandya
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My requirement is like this.
I want to send an email with user defined time, means user will select time on based on that I have to send an email.

I will fetch data from database, prepare mail format and will send on selected user on selected time.

its like crazy
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with using the classes I mentioned?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lester Burnham wrote:What's wrong with using the classes I mentioned?


Agreed. I don't see that having to create 200 objects is any kind of reason to reject an idea.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!