Deactivate email notifications for all users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • activeminds
    New Member
    • Nov 2012
    • 19
    • 4.2.X

    Deactivate email notifications for all users

    Hello,

    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.
  • delicjous
    Senior Member
    • Mar 2014
    • 499
    • 6.X

    #2
    At first you could write your userid into the following line of code into config.php you find in forum root.
    Code:
    // ****** USERS WITH QUERY RUNNING PERMISSIONS ******
    // 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 yourdomain.com/admincp/queries.php?do=modify&
    There is a dropdown with queries you could use to edit !!!ALL!!! users options

    AND

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

    Code:
        //    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.

    Comment

    • activeminds
      New Member
      • Nov 2012
      • 19
      • 4.2.X

      #3
      Thank you. That really helped.

      Comment

      • glennrocksvb
        Former vBulletin Developer
        • Mar 2011
        • 4011
        • 5.7.X

        #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.

        Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

        Comment


        • 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.
      Working...