Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E-mail notification new user #18216

Open
Orygaw opened this issue Oct 25, 2021 · 4 comments
Open

E-mail notification new user #18216

Orygaw opened this issue Oct 25, 2021 · 4 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@Orygaw
Copy link

Orygaw commented Oct 25, 2021

hello Is it possible to delete the e-mail alert information about the creation and deletion of a new user on the adminstrator account?

These alerts get in the way when I have a large user base.

Maybe there is a plug for it? I used Matomo v4.5.0

@Orygaw Orygaw added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Oct 25, 2021
@Orygaw Orygaw changed the title E-mail a new user E-mail notification new user Oct 25, 2021
@bx80
Copy link
Contributor

bx80 commented Oct 25, 2021

Hi @Orygaw, thanks for the suggestion. Unfortunately at the moment there isn't a way to disable the administrator emails for new user creation or deletion. I'm not aware of any plugin that adds this option.

@andyjdavis
Copy link
Contributor

Would it be useful to have a "send email notifications for user creation and deletion" setting, on by default, which could be turned off?

@sgiehl
Copy link
Member

sgiehl commented Nov 19, 2021

I agree. An option for those mails might be nice.
If you want to disable creation and deletion mails on your instance you can currently achieve that by creating something like this in config/config.php

<?php

return [
    'observers.global' => \DI\add([
        ['Mail.shouldSend', \DI\value(function (&$shouldSendMail, $mail) {
            if ($mail instanceof \Piwik\Plugins\CoreAdminHome\Emails\UserCreatedEmail ||
                $mail instanceof \Piwik\Plugins\CoreAdminHome\Emails\UserDeletedEmail) {
                $shouldSendMail = false;
            }
        })],
    ]),
];

@tassoman
Copy link
Contributor

tassoman commented Sep 6, 2023

Would it be useful to have a "send email notifications for user creation and deletion" setting, on by default, which could be turned off?

Although there is no place for mail notification option inside general settings web frontend (CoreAdminHome) maybe in first iteration, a simple config.ini.php parameter is enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

6 participants