Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i have two table
1) Tbl_EmailAddress
id,
emailId

2) Tbl_Product
pid,
pname,
pdetail,
startDateTime,
CloseDateTime,

now
there are some data in database tables

i want to mail my all users (om email id) when startDateTime becomes Server time

then how can i accomplish ...

mail should be send on StartDateTime (mail contain product name and details)

please help
thanks
Posted
Comments
Awadhendra Tripathi 28-Jun-14 2:18am    
So you write tbl before your table name?
so you should also write col before column name
: )
Sanjay K. Gupta 28-Jun-14 2:26am    
Instead of laughing on his naming convention, you should provide a solution for his problem.:)

Awadhendra Tripathi 28-Jun-14 2:28am    
Then what you done..?
you also repeating same thing : )
Sanjay K. Gupta 28-Jun-14 2:30am    
The question is not clear. I think, he was talking about automated mail sending.
Sergey Alexandrovich Kryukov 28-Jun-14 2:37am    
Oh, please. He should not. Is he less free person the you are? Why won't you say to yourself "I should help" and actually help?

As to that "laughing", Awadhendra actually gave IP a really valuable advice on naming. It would be good to appreciate it. Indeed, this is similar to some person who use the word "class" in class name, "application" in the name of executable file, and so one. Who says that laughing is a bad thing? We all should have more sense of humor and think of ourselves not so seriously, with certain irony...

Doesn't it makes sense?

—SA

you can do this using ASP.NET but you can simply do this task by writing simple console application to send emails by fetching data from database at the excution time. Schedule this exe as windows scheduled task and run it in every 5 minutes or as you need.
for other options check These answers[^]
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900