Click here to Skip to main content
15,888,224 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an MVC 5 web application and in that, there is job scheduler and for that, we have one window task scheduler which sends email notification for pending documents and if I have 10 pending documents for 10 people and any of them opens thenit won't send a reminder for rest pending document.

Anyone have any idea why?

What I have tried:

ASP.net MVC 5 and Windows Task Scheduler
Posted
Updated 9-Nov-17 10:09am
v2
Comments
Member 10754595 10-Nov-17 8:15am    
I have added my code in this post please let me know if need any changes

1 solution

Since you are not showing any code, there is little we can help you with.

Anyways, the guess is that you are having a global variable to control whether to send email or not. In this case, I would associate a property with the file itself to check if I need to notify the owner of that file or not. Also, this will let me control how many files I have, and how many of them need an email notification.

If you are having a custom object type then it would be easy as you would only need to add a property, something like, "Modified". Checking this Modified property for one file will not have any change on other files, and the email delivery for others would not be altered.
 
Share this answer
 
Comments
Karthik_Mahalingam 10-Nov-17 7:23am    
5

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