No announcement yet.

Deactivate email notifications for all users

  • Filter
  • Time
  • Show
Clear All
new posts

  • Deactivate email notifications for all users


    our forum version is 5.3.3. and we would like to switch off email notifications for all users because we are getting too many complaints about unwanted emails. User who actually do want to receive emails can switch it back on individually.

    I suppose this could probably be done by running the correct mysql statement. Any ideas how to do this?

    Thanks for your help.

  • #2
    At first you could write your userid into the following line of code into config.php you find in forum root.
    // The users specified here will be allowed to run queries from the control panel.
    // See the above entries for more information on the format.
    // Please note that the ability to run queries is quite powerful. You may wish
    // to remove all user IDs from this list for security reasons.
    // The 1 ist an example!
    $config['SpecialUsers']['canrunqueries'] = '1';

    Safe the file and you could run queries in admincp under
    There is a dropdown with queries you could use to edit !!!ALL!!! users options


    You could disable all mails by editing your config.php in forum root.

        //    This allows you to shut down all mail that is being sent by vBulletin.    
    //    This is useful for test environments
    // define("DISABLE_MAIL", true);
    You have to uncomment (delete the //) infornt of define("DISABLE_MAIL", true);
    Last edited by delicjous; Fri 29 Sep '17, 3:48am.


    • #3
      Thank you. That really helped.


      • #4
        How can others who want email enable the email notifications if you disable mail that way? I would just turn off email notifications globally in Maintenance > Execute SQL Query. In the Automatic Query dropdown, there are predefined queries you can execute. Some of them pertain to email notifications.

        If you don't have permissions to use this SQL tool in AdminCP, you have to edit the core config.php to add your userid in the 'canrunqueries' config option.

        GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!


        • delicjous
          delicjous commented
          Editing a comment
          This is what I explained above
      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.