Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends
i want to send email to user automatically one week before when expire date near
I have 2 table 1)login
2) post_property
login table has email column
post_property has expire date column
plz help.....


this mail send to user a notification.
Posted

Have a windows services with a timer that runs once a day at a selected time.
When the code runs (at the selected time), check the db and extract all the records that are due to expire in a weeks time.

Your service can then also be responsible for sending the emails to the users
 
Share this answer
 
for automatic email you should schedule you taks with scheduler..

if you have shared hosting environment then it is not possible
but if you have VPS or Dedicated Server then you can add
windows schedule task with your programme..
 
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