Email digests /scheduler

Post

Posted
Rating:
#1782 (In Topic #346)
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’
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
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris Graham)
#1783
Avatar
Standard member
lg11 is in the usergroup ‘Well-settled’
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
Online now: No Back to the top

Post

Posted
Rating:
#1788
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’

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



Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#1789
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
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]


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#1792
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’
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.
Online now: No Back to the top

Post

Posted
Rating:
#1794
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ok. I'm hoping someone British will notice the great pun in these table names  :lol:


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris Graham)
#1795
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’
especially if chocolate :) Yum.
Online now: No Back to the top

Post

Posted
Rating:
#1797
Avatar
Standard member
supertramp4 is in the usergroup ‘Well-settled’
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
Online now: No Back to the top

Post

Posted
Rating:
#1798
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’

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.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#1801
Avatar
Standard member
lg11 is in the usergroup ‘Well-settled’
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.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,052 topics, 7,195 posts, 10,827 members
  • Our newest member is LowfareMart
Birthdays:
Back to Top