If I were to run some code, perhaps send an email, every 30 days to users of my site, how would that be done?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Which framework are you working with? I have some pointers if you’re developing with .Net 4.0 like I am.
If you have access to your machine where you can install services I would utilize the new and improved Workflow Service for this situation. What’s nice about them is that Workflows can persists for minutes, hours, days, weeks, months, etc. lying “dormant” until delays time periods finish.
If it’s an IIS machine (and if that’s the route you would like to take) it is relatively simple to build it straight as a “Workflow Service” project/solution in VS 2010. From there you are presented with a designer and several workflow activities in the toolbar.
Add a flowchart activity to place your email activities inside of. Flowchart is ideal because it can initialize whatever you need to and decision flow can redirect backwards in direction (as opposed to the always forward moving sequence activity). What you need to do with your logic is up to you from there since your question doesn’t provide a lot of details.
Now if you’re using .Net 3.5 then I would think about refraining from building Workflows since you have to migrate when switching to 4.0 (WF 3.5 is NOT compatible with 4.0). With admin access to the machine you can install a Windows Service that contains a timer to fire code every 30 days (or however defined) as needed.