Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Mail Error, need to turn off e-mail notifications globally

Some of the users on the board use fake e-mails and every time someone comments, my catch-all e-mail gets flooded with errors. Is there a way to remove that feature or limit it in some way. Having a lot of issues with it.

Thanks.

Comments

  • Options
    hgtonighthgtonight ∞ · New Moderator

    You can change your notification settings at http://forums.example.com/profile/preferences/. Uncheck all of the email boxes.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    Thanks but would that work globally for all users?

  • Options
    hgtonighthgtonight ∞ · New Moderator

    @lorddfg said:
    Thanks but would that work globally for all users?

    You can set the default preferences for new users to not have any of the email options checked.

    Do you want to completely disable email or just notification email?

    You could hook into the activity model before a notification gets sent and "ban" the user (not really) to prevent the email from being sent.

    Something like:

    public function activityModel_beforeSendNotification($sender) {
      $user =& $sender->EventArguments['User'];
      $user->Banned = true;
    }
    

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    You can also disable it through the config by making the values Zero

    $Configuration['Preferences']['Email']['ConversationMessage']   = '0';
    $Configuration['Preferences']['Email']['AddedToConversation']   = '0'; // merged with ConversationMessage
    $Configuration['Preferences']['Email']['BookmarkComment']       = '0';
    $Configuration['Preferences']['Email']['WallComment']           = '0';
    $Configuration['Preferences']['Email']['ActivityComment']       = '0';
    $Configuration['Preferences']['Email']['DiscussionComment']     = '0';
    $Configuration['Preferences']['Email']['DiscussionMention']     = '0'; // merged with regular mention
    $Configuration['Preferences']['Email']['CommentMention']        = '0';
    $Configuration['Preferences']['Email']['Mention']               = '0';
    
  • Options
    peregrineperegrine MVP
    edited September 2015

    @vrijvlinder said:
    You can also disable it through the config by making the values Zero

    $Configuration['Preferences']['Email']['ConversationMessage']   = '0';
    $Configuration['Preferences']['Email']['AddedToConversation']   = '0'; // merged with ConversationMessage
    $Configuration['Preferences']['Email']['BookmarkComment']       = '0';
    $Configuration['Preferences']['Email']['WallComment']           = '0';
    $Configuration['Preferences']['Email']['ActivityComment']       = '0';
    $Configuration['Preferences']['Email']['DiscussionComment']     = '0';
    $Configuration['Preferences']['Email']['DiscussionMention']     = '0'; // merged with regular mention
    $Configuration['Preferences']['Email']['CommentMention']        = '0';
    $Configuration['Preferences']['Email']['Mention']               = '0';
    

    good idea for new users
    because that only applies for new users who register.

    but still something needs to be done for existing members. (either manually change profile via checkboxes or stopping email via plugin like provided above, etc.)

    or if the plan is to completely override email class
    http://vanillaforums.org/discussion/26740/how-to-override-gdn-email-phpmailer

    or

    http://vanillaforums.org/discussion/comment/217676#Comment_217676

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.