Disable all users email notifications?

Hi.
I’ve imported a phpbb forum to Discourse.
I’ve also imported some other messages and it seems that all the imported users are receiving activity emails from the Discourse forum, which I don’t want since I’m still heavily working on my forum and it isn’t opened to public yet.

So I need to disable all email notifications for the users as soon as possible. How can I achieve this?

There is a site setting to disable all email. The importers usually set this for you, or they should anyway.

لأي شخص يحتاج إلى القيام بذلك.. لقد اضطررت للتغيير في نسخة قديمة من موقع خضع لتغيير DNS فقط. يمكن الوصول إليه عبر SSH فقط.

خطوات القيام بذلك هي الدخول إلى الخادم عبر SSH:

cd /var/discourse
sudo ./launcher enter app

إذا كان اسم الحاوية مختلفًا، استبدل app باسم الحاوية.

rails c
SiteSetting.disable_email="yes"

لقد وجدت إعداد الموقع باستخدام وظيفة الإكمال التلقائي بعد كتابة disable.. قد يكون من المفيد للآخرين معرفة ذلك.