Email digests /scheduler

Post

Posted
Rating:
#1809 (In Topic #393)
Hi.
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

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Chris Graham)
#1810
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

Post

Posted
Rating:
#1815

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

I liked that you answered, but actually   :lol:

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

Post

Posted
Rating:
#1816
I did a test on my dev site and it worked okay. As I don't currently have access to your site to debug this (I'm happy to have a look though if you want to re-enable my test account), I've written some notes on how it works so you can look yourself if you like…

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]

Post

Posted
Rating:
#1819
Hi chris,
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.

Post

Posted
Rating:
#1821
Ok. I'm hoping someone British will notice the great pun in these table names   :lol:

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Chris Graham)
#1822
especially if chocolate :) Yum.

Post

Posted
Rating:
#1824
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

Post

Posted
Rating:
#1825

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.

Post

Posted
Rating:
#1828
I reply to questions simply because, the law of averages says that the more questions i answer, the higher the odds are i will get one right :D .

I dont like Digestives, i am more a hob knob kinda guy :D .
0 guests and 0 members have recently viewed this.