Email digests /scheduler
Posted
#1809
(In Topic #393)
I have setup the cron_bridge.php scheduler and that seems to be logging an updated time on the dashboard every 5 minutes as expected.
I want to have forum email digests sent out to those who enable it in notifications.
The option is now showing in config to enable digests and i have enabled a test user to receive daily digest but nothing seems to be sent.
Have checked e-mail audit log and nothing is being attempted to be sent by cron.
What am i missing? It is something to do with the comcode scheduler bit at the bottom of the dashboard view and if so what do i enter here?
Tia
Chris
Posted
Posted
lg11 said
Have you set up the email smtp server? also some hosts (one of mine for example) mess up smtp and i have to use php mail
From “Post #1783”, 21st Jan 2017
I liked that you answered, but actually
Even if outbound email was broken, the Composr log would still show the email there.
I'm giving this some consideration…
Last edit: by Chris Graham
Posted
Digests are sent out via the scheduler. A member can only choose to receive digests if the scheduler is set up and if they have configured an e-mail address.
[Note - this would be the case for you, given you've already said you've set them up on the test account]
Digests are not sent out at any specific time (to avoid overloading outbound e-mail each night), but rather each member's digests are individually time-tracked using the digestives_consumed table. For each member there is a timestamp in that table representing when each of their digest's was last sent. When the scheduler runs it looks to see what digests are due and sends them if there's any content for them.
Actual digest content is queued up in the digestives_tin table.
[Note - so you may want to see what is in these tables]
Posted
thanks for the notes.
i'll take a look at the tables tonight, and if that does not reveal anything, i will let you know.
Posted
Posted
Posted
I made a change yesterday to Admin Zone » Setup » Configuration » Site options to enable "E-mail queue".
Is this a requirement to have this enabled for the e-mail digest scheduler to work ?
Chris
Posted
supertramp4 said
Ive just got a digest through.... Yeh
I made a change yesterday to Admin Zone » Setup » Configuration » Site options to enable "E-mail queue".
Is this a requirement to have this enabled for the e-mail digest scheduler to work ?
Chris
Shouldn't be, I just checked the code and the notification CRON stuff just sends a mail in the normal way, which either will go into the queue (in which case you'd see it in the log) or it would log and then go out immediately.
1 guest and 0 members have recently viewed this.