Brent W Well-known member Nov 1, 2012 #1 If I have a list of emails is there a query that I can run that will change all of those emails so that they don't receive admin emails?
If I have a list of emails is there a query that I can run that will change all of those emails so that they don't receive admin emails?
Jake Bunce Well-known member Nov 1, 2012 #2 Rich (BB code): UPDATE xf_user_option AS uo SET uo.receive_admin_email = 0 WHERE ( SELECT u.user_id FROM xf_user AS u WHERE u.user_id = uo.user_id AND u.email IN ('blah@blah.com', 'blah4444@blah.com') ); Upvote 0 Downvote
Rich (BB code): UPDATE xf_user_option AS uo SET uo.receive_admin_email = 0 WHERE ( SELECT u.user_id FROM xf_user AS u WHERE u.user_id = uo.user_id AND u.email IN ('blah@blah.com', 'blah4444@blah.com') );