Emails to admins

Hi,

Is there a way to disable the email notifications that go out to admins? where do we find the log for the mail that was not sent?


1752734423841.png
1752734437328.png
 
Last edited:
You can create a group and deny permissions to view messages and add to that group the user.

You will not find logs for this type of emails, but as you can see the message is quite explicit.
I know about those options but I want to stop the email for unread messages to be sent.
 
Backend > Settings > Customers > Common > Unread messages reminder frequency = Disabled.
You can do the same for particular customer groups.
Will that stop the messages to be sent to administrators as well. Because the people who got the messages were not clients but system admins?
 
Last edited:
Yeah, this does not apply to users, only to customers.
It would be simple enough to push this functionality to users as well, but I am not sure I want to do this, I want users to receive all these messages so they know exactly what is going on with their system. @ghimes - what do you say?
 
Yeah, this does not apply to users, only to customers.
It would be simple enough to push this functionality to users as well, but I am not sure I want to do this, I want users to receive all these messages so they know exactly what is going on with their system. @ghimes - what do you say?

A group option for users will probably best, there are some admins that should not get unread notifications. We will probably build a 3rd party login system if this cant be done in the short term
 
A group option for users will probably best
There's no such thing for backend, the groups for users work totally different than the groups for customers.

Would giving you a filter hook there to hook programatically and reject/allow emails for users would work?
Something like:
PHP:
<?php
// allow only user 1, 2, 3, 4 and deny for rest of users.
hooks()->addFilter('console_command_daily_allow_send_unread_messages_reminder_to_user', function ($allow, $userId) {
    $allowedUsers = [1, 2, 3, 4];
    
    if (in_array($userId, $allowedUsers)) {
        return true;
    }
    
    return false;
})
 
There's no such thing for backend, the groups for users work totally different than the groups for customers.

Would giving you a filter hook there to hook programatically and reject/allow emails for users would work?
Something like:
PHP:
<?php
// allow only user 1, 2, 3, 4 and deny for rest of users.
hooks()->addFilter('console_command_daily_allow_send_unread_messages_reminder_to_user', function ($allow, $userId) {
    $allowedUsers = [1, 2, 3, 4];
   
    if (in_array($userId, $allowedUsers)) {
        return true;
    }
   
    return false;
})
That should be fine… thanks
 
You can implement it already, we're going to add the hook for the next release.

I have another ticket open with Cosmin about the activity logs, we need to keep them for longer at least for 365 days so we can prove that clients made certain changes like deleting contacts or changing there status. GDPR requires use to be able to provide an audit log if requested.. What would be the best way to retaining these?
 
I don't think that can be used as an audit log because for example, when a subscriber is removed from the system, then we remove the logs for that as well.
If you're interested in keeping those logs for longer, that's not a problem from my side, you can do it from a filter hook:
PHP:
<?php
    
    hooks()->addFilter('customer_action_logs_retention_days', function($daysCount) {
        return 365;
    });

This filter has been added today, you can add it and it will take effect with the next release.

But again, not sure how good this feature is as an audit log.
 
I don't think that can be used as an audit log because for example, when a subscriber is removed from the system, then we remove the logs for that as well.
If you're interested in keeping those logs for longer, that's not a problem from my side, you can do it from a filter hook:
PHP:
<?php
   
    hooks()->addFilter('customer_action_logs_retention_days', function($daysCount) {
        return 365;
    });

This filter has been added today, you can add it and it will take effect with the next release.

But again, not sure how good this feature is as an audit log.
Is there anything else that you would suggest we just need to be able to se what customers/admins has done…
 
Back
Top