Scheduling dynamic newsletter

Mark Elliott asked on November 12, 2018 19:36


Every morning we send out an email to our subscribers of the stories added to our site in the last 24 hours. So I have created an email template with a 'latest stories' widget. I then created a custom scheduled task that loads the Newsletter with that template and sends to all subscribers.

Everything works wonderfully if the scheduled task is executed manually. However...if the scheduler runs the task I get...

'Widget has expired'

Any ideas what might be causing this difference in behavior?


Recent Answers

Zach Perry answered on November 12, 2018 19:50 (last edited on November 12, 2018 19:51)

It may be the user context the task is running under.

I believe when you manually run it, it will execute under the user who ran it.

When the scheduler runs it, I think it is the last user who authenticated.

You can change the context inside the scheduled task configuration.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.