Hi,
We want to send out newsletters every Monday at e.g. 6am in the morning. Currently the scheduler can be set to run every e.g. 5 minutes/hours etc. Is there a way to configure the scheduler to only execute on Mondays at a certain time ? (maybe an event that I can trap and set the "Next run time" programmatically to run on Mondays ?)
Thanks
Danie
Hi Steve,
thanks for your answer.
I thought of the same thing, but don't know where to write this check. The only place that I can think of to write this check is in the the "public void Send(PageData subscriptionPage,PageDataCollection changedPages)" function (SubscriptionPlugIn).
But if I do this, then the subscriber will only get the most recent changes made since yesterday the function last executed instead of all the changes over the past 7 days (haven't tested it, so I might be wrong).
Thanks,
Danie
Ah, I thought you had your own newsletter implementation.
You'll have to write a wrapper around the existing one (which you also have to disable in the scheduler.)
Creating a new subscription handler might not be enough, as the search for changed pages is done outside the handler.
Hm, tricky.
/Steve
Hi,
Maybe I just need to set the service to run every 7 days and set the "Next scheduled date" to 28 Aug 2006 (Monday) and then therefrom the service will execute every Monday.
I think this should do the trick.
Thanks!
Danie