How to disable email notification for tasks

Hi,

Can anyone please give me an idea how to disable email notification to users for tasks only? :slight_smile:

Hi,
As far as I can see, You are unable to Disable Notifications for specific Modules through the Built-in UI tools for SuiteCRM.
You can Disable Notifications for all Modules, but not specific ones.

However, You could most likely do this by making changes to the code, i.e: Commenting out/Editing sections relating to “Notify” in the relevant modules, but this would not be upgrade-safe

Ok John, noted. Thank you very much for your response B)

May I ask, how about the email notification when creating a lead, is this also the case? Or there is a functionality in the suitecrm?
(Please confirm if I need to raise this in a new topic. I will be happy to comply if needed.)

Seems as though it is the same with Leads I’m afraid.
Emails are sent to the user’s E-mail Address when a record of any kind assigned to them.

1 Like

Ok John.

Again thank you very much. :slight_smile:

Hi,

Sorry to be a pain, I am trying to disable email notification by commenting some lines through the Task.php within modules->tasks but it seems that this is not the right file.

Any idea about the file name and file location (so I can disable the sending of email when task is created) will be appreciated.

No Problem,

It seems that, to get the system to not send E-mails for tasks, you will have to edit an extremely core file found at: /data/SugarBean.php
It would likely not be upgrade safe and I’m unsure if the edit would affect any other parts of the CRM, so I wouldn’t recommend it.

However, if you are still interested, Take a look around Line 1459. There should be a line by itself similar to $this->_sendNotifications($check_notify);
The _sendNotifications function may be something you would like to take a look at.

1 Like

Hi John,

Thank you for your reply.

Upon looking at your response, I had an idea that it was relevant to a line in Task.php so I tried to modify it.

Now it seems to be working.

Thank you so much for your assistance. :slight_smile:

Hi Indigo21,

Could you share your solution with everyone in the forum so that others may use it as well?

Thx!

Hi amariussi,

Within Task.php I just modified:

return parent::save($check_notify);

to

return parent::save();

With this change, it disabled the task email notification.
I am still testing this but so far haven’t noticed an issue.

Thanks a lot.

I think also that it may be easy for anyone to implement a more flexible solution inspired by yours by creating a custom field for each module and or user and then, instead of removing the check_notify in the call, one should first check the value of the custom field and then act accordingly.

I don’t know if this could be implemented in an upgrade-safe way.

It would also be nice to have this implemented in the core product so that the additional fields are standard fields.