Click here to Skip to main content
15,888,301 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Dear Friends,

I have created a content in the webpage and generating that content in mail to few users.
Now i need to push that mail ramdomly weekly once and at any time.
Posted
Updated 29-Sep-14 2:45am
v2
Comments
[no name] 29-Sep-14 8:36am    
Okay good for you. If you feel that you have an actual question or can describe some sort of a problem, then please feel free to come back here and tell us about it.

1 solution

That's should be simple: for each user generate randomly the timestamp at which the push event should happen.
Then your program periodically could check if the timestamp is elapsed AND the email has not yet been sent. If both conditions are met then it could send the email (and mark it as 'sent').
 
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