SMF Support > SMF 2.0.x Support

Change the order in which mail queue is processed

(1/1)

Comms Group:
I'm using SMF 2.0.2 with just a couple of Mods - Tapatalk, Thank-o-matic, and Tagging.

We have the mail queue enabled for topic notifications (using SMTP). This works well but it is set up to process the mail queue slowly because of our hosting limits. The order in which the email recipients are added to the mail queue seems to be quite random and I would like to change this so that mail is sent to the most active members first.

There's a function to "Find the members with notification on for this topic" in Subs-Post.php. It selects the list of members to be notified so I thought I could amend this to sort the list in the order I want but it doesn't seem to work. Can someone help me with this please.

thanks
AM

Chas Large:
Nope. AFAIK, the mail queue is populated in order of notifications being generated. So if user1 visits a topic with notifications set for say 10 other users, then that generates notifications for that topic. If user2 visits another topic with notifications set for just one user, that will generate a single notification which may be processed before, during or after the batch of 10 generated by user1's visit. The timing is down to who visits what and when.

Comms Group:
Thanks. My observation (from watching the mail queue being processed) is that the groups of notifications are done in sequence - i.e. the notifications for the second topic sit in the queue until the first lot have been sent. Anyway, our forum is fairly quiet so there is usually only one set of notifications being sent out at a time but each batch includes 300 - 400 recipients. What I want is for the list of recipients for each batch of notifications to be sorted into a particular order.

Can anyone tell me where I can alter the code to achieve this?

Thanks
AM

Navigation

[0] Message Index

Go to full version