U UserMatt Member Feb 15, 2015 #1 Hi, Is there a way/command to mass unsubscribe a list of users (email addresses) from receiving admin emails? Thanks, Matt
Hi, Is there a way/command to mass unsubscribe a list of users (email addresses) from receiving admin emails? Thanks, Matt
P Paul B XenForo moderator Staff member Feb 15, 2015 #2 There is no option for that so it would require running a query directly against the database. Upvote 0 Downvote
U UserMatt Member Feb 15, 2015 #3 Brogan said: There is no option for that so it would require running a query directly against the database. Click to expand... That makes sense, thanks. Do you have any idea what the query would be? In vBulletin I used: Code: UPDATE user SET options = options - 16 WHERE options & 16 AND email IN ( 'email@email.com', 'email@email.com', 'email@email.com' ) Thanks Upvote 0 Downvote
Brogan said: There is no option for that so it would require running a query directly against the database. Click to expand... That makes sense, thanks. Do you have any idea what the query would be? In vBulletin I used: Code: UPDATE user SET options = options - 16 WHERE options & 16 AND email IN ( 'email@email.com', 'email@email.com', 'email@email.com' ) Thanks
P Paul B XenForo moderator Staff member Feb 15, 2015 #4 It would be: Code: UPDATE xf_user_option SET receive_admin_email = 0; That would do it for all users though, so you would need to factor in the user IDs to the query. Upvote 0 Downvote
It would be: Code: UPDATE xf_user_option SET receive_admin_email = 0; That would do it for all users though, so you would need to factor in the user IDs to the query.