View Full Version : Deactivating email sending in database
squishi
12-15-2010, 07:47 AM
I noticed that about 2/3 of my membership has never posted on the board.
When I send out emails, about 1/2 of them come right back.
So I want to turn off the email reception settings for inactive users.
I can select all the users with an SQL query.
But I think the email options are encoded in the options database column?
Could you please explain to what setting I would need to set this so that inactive users no longer receive an notifications from my forum (except admin emails)?
Digital Jedi
12-17-2010, 06:50 PM
I noticed that about 2/3 of my membership has never posted on the board.
When I send out emails, about 1/2 of them come right back.
So I want to turn off the email reception settings for inactive users.
I can select all the users with an SQL query.
But I think the email options are encoded in the options database column?
Could you please explain to what setting I would need to set this so that inactive users no longer receive an notifications from my forum (except admin emails)?
There's an option in each User's settings to opt out of receiving Admin Emails. You can tick that option for each of those Users yourself when editing them in the Admin CP. It's under Browsing Options.
If you still want to do it with a query (like if there are too many to do manually), you could probably figure it out by getting the value of "options" from the db for your userid, then change the option you're interested in and get it again and see which bit changed. I did that for "Receive email from Admins" or whatever it's called, but I just read your post again and I see now that's the one you want leave on.
squishi
12-24-2010, 06:19 AM
There's an option in each User's settings to opt out of receiving Admin Emails. You can tick that option for each of those Users yourself when editing them in the Admin CP. It's under Browsing Options.
If you like to click that option for 30,000+ users on your forum - fine.
I have better things to do and will need to edit the database.
--------------- Added 1293179002 at 1293179002 ---------------
So what options are included in that database field?
I want to make sure that I don't accidentally overwrite something.
Digital Jedi
12-24-2010, 05:56 PM
If you like to click that option for 30,000+ users on your forum - fine.
I have better things to do and will need to edit the database.
Being that I have no idea how many members you were referring to, since you never mentioned it, I was giving you an option you may or may not have been aware of. I was trying to be helpful. The sarcasm wasn't really necessary.
BirdOPrey5
12-26-2010, 01:55 PM
I noticed that about 2/3 of my membership has never posted on the board.
When I send out emails, about 1/2 of them come right back.
So I want to turn off the email reception settings for inactive users.
I can select all the users with an SQL query.
But I think the email options are encoded in the options database column?
Could you please explain to what setting I would need to set this so that inactive users no longer receive an notifications from my forum (except admin emails)?
You should probably require a valid email address on registration (email confirmation) so you don't get to the point of having so many bad email addresses to begin with.
So what options are included in that database field?
I want to make sure that I don't accidentally overwrite something.
I don't know, but I was thinking it doesn't matter if you find the bit of interest (as I mentioned above) and only change that one bit, like with a bitwise OR or AND.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.