That's what extensions are for.
A person has a right to privacy and not be pestered with unwanted emails, so an admin should not be able to opt someone into notifications, of course. However, I don't see how anyone has a "right" to be notified about a new post to a thread or a new thread to a forum. It is a feature of convenience to members. Taking away that ability for people that haven't even been active in the board for an extended period of time should not really be an issue.3Di wrote: ↑Sun Feb 23, 2020 2:24 amAs I tried to explain that's not something that should be a part of the core code as for the above reasons I posted.
Eg. I opted-in to be notified about some thing, it is my personal choice (UCP) so no one has the right to change it right or wrong. We're talking about privacy (emails) and freedom.
In case there are users with a wrong email as in this case I understand it's a problem, but you can't eliminate a problem by creating another one, you should obviously look for a better way. Example create a ticket if it doesn't already exist and see how it ends up.
I can understand a system that recognizes the wrong recipients/containers and puts them on a list that is used as an exclusion from the notifications sent, something similar and automated, for example.
I am sharing this here in the hope it saves some time for other board administrators facing this issue.Dear user
You are receiving this message because you have subscribed to notifications by email for new private messages, subscribed topics and/or subscribed forums but the email address account for your account is no longer valid. This means that email notifications sent to your designated address are being rejected. Large numbers of rejected emails can have an adverse effect on a forum such as this and result in legitimate emails to members being mistakenly marked as spam.
It is important to ensure the email address for your account is kept up to date so that:
To update your email address:
- You can receive email notifications if you wish to do so.
- If you forget your password or have any other issues with your account.
- Emails being sent by _________________ to other users are not mistakenly marked as spam.
This page is illustrated below:
- Please go to your User Control Panel by clicking on the drop down arrow next to your username in the top right hand corner of the screen.
- Go the tab marked "Profile".
- In the left hand menu, select "Edit account settings".
- Enter a valid working email address in the "Email address" field.
- Click the "Submit" button.
PLEASE NOTE: It is critical that you enter a valid email address. Once you change your email address, your account will be temporarily deactivated until the email address you have supplied is validated. An email will be sent to the new email address with a link to validate the address and re-activate your account. Please check your junk/spam email folder if you do not receive the email within a few minutes. Otherwise contact us at ________________________ or via Facebook Messenger at ___________.
Once you have updated your email address, to turn email notifications back on:
This page is illustrated below
- Please go to your User Control Panel by clicking on the drop down arrow next to your username in the top right hand corner of the screen.
- Go the tab marked "Board preferences".
- In the left hand menu, select "Edit notification options".
- Click a box in the email column for any types of notifications that you would like to receive by email.
- Click the "Submit" button.
Thank you for your understanding and feel free to message me back with any queries.
Kind regards
_______________________
I recently did a mass mailing from a forum regarding its future (succession planning, if you will). Several (but fewer than 10) email addresses bounced. I checked when the user associated with that address had last been active. If that was more than 7 years I deleted the user. Should the (former) user in question theoretically come to log in again they will have the option to simply re-register or use 'Contact Admin'. Draconian perhaps, so in future I may send a last PM warning as outlined in your helpful post - though if users are not logging in and email notifications of PM are being bounced, how will they ever know?KYPREO wrote: ↑Sun Feb 23, 2020 1:31 amAlso, we're only talking about turning notifications OFF here - effectively unsubscribing them from email notifications, which is the opposite of spam...and they're not getting the emails anyway, because they don't have a valid email address. Every admin should be able to have control of where notification emails are being sent by their board. This is in fact within the spirit of anti-spam legislation. You will find many privacy/anti-spam laws and codes require those who manage mailing lists to keep the list clean by removing dead emails. This is why some IP reputation services actually mark you down for repeatedly sending emails to dead addresses. I could equally argue phpBB is currently in default of those requirements because it does allow an admin to prevent the board from sending emails to dead addresses.
Code: Select all
UPDATE `phpbb3_user_notifications` SET `notify`=0
WHERE `method`="notification.method.email" AND `user_id` IN(
SELECT `user_id` FROM `phpbb3_users` WHERE `user_lastvisit` > 0 AND`user_lastvisit` < 1487884864
)
Nice one!gpraceman wrote: ↑Sun Feb 23, 2020 7:48 amHere's the down and dirty query that I came up with. Anyone that hasn't been active in the board for more than 3 years had their notifications removed.Code: Select all
UPDATE `phpbb3_user_notifications` SET `notify`=0 WHERE `method`="notification.method.email" AND `user_id` IN( SELECT `user_id` FROM `phpbb3_users` WHERE `user_lastvisit` > 0 AND`user_lastvisit` < 1487884864 )
In my case that was a whopping 6,045 records affected.
You can scrub all the email addresses through a service, like https://www.bulkemailchecker.com/, pretty inexpensively. I probably should do that for my board members, as I have thousands of members. I already do this prior to sending out my annual newsletter for an ecommerce site of mine.
Thank you so much for providing this. Very useful. I just had 167,826 records updated in a couple of seconds.gpraceman wrote: ↑Sun Feb 23, 2020 7:48 amHere's the down and dirty query that I came up with. Anyone that hasn't been active in the board for more than 3 years had their notifications removed.Code: Select all
UPDATE `phpbb3_user_notifications` SET `notify`=0 WHERE `method`="notification.method.email" AND `user_id` IN( SELECT `user_id` FROM `phpbb3_users` WHERE `user_lastvisit` > 0 AND`user_lastvisit` < 1487884864 )
In my case that was a whopping 6,045 records affected.
You don't need the back ticks, and I would addgpraceman wrote: ↑Sun Feb 23, 2020 7:48 amHere's the down and dirty query that I came up with. Anyone that hasn't been active in the board for more than 3 years had their notifications removed.Code: Select all
UPDATE `phpbb3_user_notifications` SET `notify`=0 WHERE `method`="notification.method.email" AND `user_id` IN( SELECT `user_id` FROM `phpbb3_users` WHERE `user_lastvisit` > 0 AND`user_lastvisit` < 1487884864 )
In my case that was a whopping 6,045 records affected.
AND user_type <> 2
to exclude Anonymous and bots.What are "back ticks"?stevemaury wrote: ↑Mon Feb 22, 2021 6:50 pmYou don't need the back ticks, and I would addAND user_type <> 2
to exclude Anonymous and bots.