1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What do you do with inactive users with broken email addresses?

Discussion in 'Forum Management' started by Stuart Wright, Jul 8, 2014.

  1. Stuart Wright

    Stuart Wright Well-Known Member

    I want to make it so these people do not get any more emails from our forum at all, and they have to enter a new email address if they ever come back before they can use the forum again.
    Is it a simple case of changing their primary user group to the guest one?
    Or create a duplicate of the guest user group called, say, 'Inactive Members' and put them in that?
    Any suggestions?
    Thanks
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Set the user state to Email Invalid (bounced).
     
    BassMan and lazy llama like this.
  3. Stuart Wright

    Stuart Wright Well-Known Member

    Perfect but the batch update users function doesn't allow me to update their status to Email Invalid (bounced).
    What SQL statement would I need to run to achieve it?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    What is the criteria for selecting the members?
     
  5. petertdavis

    petertdavis Well-Known Member

    Before you do this, realize that the bounced status is virtually identical to banned status. I made the mistake of doing this on a forum and using data that Sendgrid supplied regarding bounced emails it sent 10,000 members to bounced status and I had hundreds of members complaining that they got banned. And that's just the ones that complained. It's a terrible mess, and needs to be done better, hopefully in the next version of XF the developers will rethink how this works.
     
    Alfa1 likes this.
  6. Stuart Wright

    Stuart Wright Well-Known Member

    I've got it Paul, thanks. Update xf_user set user_state = 'email_bounce' where user_id in (comma separated list of several thousands users).
    Is that how the enum field type works?
     
  7. Stuart Wright

    Stuart Wright Well-Known Member

    I just tested this and when I logged in with an account set to invalid, I saw this notice:
    And the rest of the forum behaves normally. Which is perfect. Not at all like being banned.
     
    BassMan likes this.
  8. Alfa1

    Alfa1 Well-Known Member

    Thats useful but not perfect. The user will need to do more than just change their email. For many email providers they will need to add your website email address to their contacts. Its likely that they will use the same email provider and the email provider has already decreased your credibility, so its more likely that your domain is again flagged as spam. So a change of email by the user does not necessarily solve it.

    What you are asking for is a complex matter. You will need to send your emails in such a way that bounces can easily & automatically be tied to users. Then have a script analyse the bounces you receive. Email servers send hundreds of different bounce messages. Many types of bounces are not real problems. A mailbox may be full or a server may have a hiccup. Tie actions to each type of bounce.

    Your audience will probably be fairly technical. However, we get a lot of support tickets from members who need assistance with their accounts once the are restricted from normal forum operating. Users should have some way to receive assistance.
     
    Walter likes this.
  9. petertdavis

    petertdavis Well-Known Member

    Did you try posting?
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    I just have @petertdavis and it works fine.

    Are you sure you're not thinking of email_confirm?

    email_confirm is the status when you have just registered. That would block you from posting. email_bounce is a verified registered member, but their email has since been bouncing. Its just a marker to indicate their email address needs updating.
     
  11. petertdavis

    petertdavis Well-Known Member

    No, on my forum if a member gets bounced status it's like they're banned. They can't do anything. Maybe it's just my forum, dunno how mine could have ended up different than anyone elses though cause I have no clue how to change permissions for members in bounced status.
     
  12. Chris D

    Chris D XenForo Developer Staff Member

    You can't.

    Simple as that.

    We're talking about user states here. There is no permissions that can override their default behaviour. I can only assume it might be an add-on that may not recognise this relatively new "email_bounced" state and is mistaking it for something invalid.

    What exactly is the behaviour when they attempt to post? What other things can they/can't they do?
     
  13. petertdavis

    petertdavis Well-Known Member

    They get the "(You have insufficient privileges to reply here.)" instead of the reply box.
     
  14. petertdavis

    petertdavis Well-Known Member

    Hmm, I just went in and disabled all the addons and it still does it.
     
  15. Chris D

    Chris D XenForo Developer Staff Member

    What XF version? And what does the notice at the top of the page tell the user?
     
  16. Mike

    Mike XenForo Developer Staff Member

    Any user state other than valid means the user gets the "unregistered / unconfirmed" permissions.
     
  17. Chris D

    Chris D XenForo Developer Staff Member

    I'm not getting that...

    I must have something wrong with my dev board. Same with add-ons disabled. Weird.
     
  18. Stuart Wright

    Stuart Wright Well-Known Member

    So they get the same permissions as the Guest user group? In which case their experience can very from one forum to the next depending on how that user group's permissions have been set up. Or do they get some generic restrictions applied which are not based on any user group?
     
  19. Mike

    Mike XenForo Developer Staff Member

    They get whatever permissions are set for the "unregistered / unconfirmed" group, so the former.
     
  20. Stuart Wright

    Stuart Wright Well-Known Member

    Right so that would explain why people are having different experiences.
     

Share This Page