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 后使用 Tab 键自动补全功能找到该站点设置的,这可能对其他人也有帮助。