Click here to Skip to main content
13,248,107 members (35,302 online)
Rate this:
 
Please Sign up or sign in to vote.
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 9-Nov-17 10:48am
Updated 9-Nov-17 11: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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Karthik Bangalore 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04 | 2.8.171114.1 | Last Updated 9 Nov 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100