K king8084 Well-known member Sep 13, 2015 #1 i have a list of almost 2000 bad emails, what query can i run to change them all to bounced ?
P Paul B XenForo moderator Staff member Sep 13, 2015 #2 There is no way of identifying records in the user table with 'bad' email addresses so it would require a script to loop through the list. However, the system will automatically set the accounts to 'Email invalid (bounced)'. Upvote 0 Downvote
There is no way of identifying records in the user table with 'bad' email addresses so it would require a script to loop through the list. However, the system will automatically set the accounts to 'Email invalid (bounced)'.
K king8084 Well-known member Sep 13, 2015 #3 Brogan said: There is no way of identifying records in the user table with 'bad' email addresses so it would require a script to loop through the list. However, the system will automatically set the accounts to 'Email invalid (bounced)'. Click to expand... i already know the 2000 emails...i have a record of them...i want a way to say "set user X with email Y to bounced" Upvote 0 Downvote
Brogan said: There is no way of identifying records in the user table with 'bad' email addresses so it would require a script to loop through the list. However, the system will automatically set the accounts to 'Email invalid (bounced)'. Click to expand... i already know the 2000 emails...i have a record of them...i want a way to say "set user X with email Y to bounced"
P Paul B XenForo moderator Staff member Sep 13, 2015 #4 The basic query syntax is: Code: UPDATE xf_user SET user_state = 'email_bounce' WHERE email = 'example@example.com'; You would have to run that query for each email address. Take a backup first before doing any direct changes to the database. Upvote 0 Downvote
The basic query syntax is: Code: UPDATE xf_user SET user_state = 'email_bounce' WHERE email = 'example@example.com'; You would have to run that query for each email address. Take a backup first before doing any direct changes to the database.
rosal Active member Jul 29, 2021 #5 And a query to run to old provider email. example "@tjol.com" I need a query to put all the users have that email provider "@tjol.com" to "email invalid bounced" is possible? *Sorry is to xenforo 2.2 Upvote 0 Downvote
And a query to run to old provider email. example "@tjol.com" I need a query to put all the users have that email provider "@tjol.com" to "email invalid bounced" is possible? *Sorry is to xenforo 2.2
dougdirac Active member Jul 29, 2021 #6 Brogan said: The basic query syntax is: Code: UPDATE xf_user SET user_state = 'email_bounce' WHERE email = 'example@example.com'; You would have to run that query for each email address. Take a backup first before doing any direct changes to the database. Click to expand... Is this query still valid on XF 2.2? Upvote 0 Downvote
Brogan said: The basic query syntax is: Code: UPDATE xf_user SET user_state = 'email_bounce' WHERE email = 'example@example.com'; You would have to run that query for each email address. Take a backup first before doing any direct changes to the database. Click to expand... Is this query still valid on XF 2.2?
dougdirac Active member Jul 29, 2021 #7 rosal said: And a query to run to old provider email. example "@tjol.com" I need a query to put all the users have that email provider "@tjol.com" to "email invalid bounced" is possible? *Sorry is to xenforo 2.2 Click to expand... Assuming the previous query is still valid, you should be able to do Code: UPDATE xf_user SET user_state = 'email_bounce' WHERE email LIKE '%@tjol.com'; I'd test it on a backup first. Upvote 0 Downvote
rosal said: And a query to run to old provider email. example "@tjol.com" I need a query to put all the users have that email provider "@tjol.com" to "email invalid bounced" is possible? *Sorry is to xenforo 2.2 Click to expand... Assuming the previous query is still valid, you should be able to do Code: UPDATE xf_user SET user_state = 'email_bounce' WHERE email LIKE '%@tjol.com'; I'd test it on a backup first.