Problem with email sent to every user

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
mari001

Problem with email sent to every user

Post by mari001 »

Hi,

I have been using MantisBT version 1.2.8 for a couple of years with no problem with the emails. Most of the users are reporters, a couple of them are managers of several projects. I configured the email notifications in: Manage > Manage Configuration > E-mail Notifications and the emails are sent only to the users that open a ticket or the managers.
The problem came when I installed a newer version (1.2.12), with the same configuration, the emails are sent to most of the users instead of being send only to the one that open the issue and the managers of the project. I have double-check the configuration and it is the same in both installations.
I would appreciate if someone could help me with this problem. Now I had to stop sending emails as they bother the other user not involved in a issue.
Thanks in advance
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with email sent to every user

Post by atrol »

Enable email logging to see what happens

Code: Select all

$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/tmp/mantisbt.log';
To suppress sending to other users add also

Code: Select all

$g_debug_email	= 'yourName@yourCompany.com';
Please use Search before posting and read the Manual
mari001

Re: Problem with email sent to every user

Post by mari001 »

Ok, done.

I did a test and I sent you the log file.

Thanks
Attachments
mantisbt.log
(3.45 KiB) Downloaded 395 times
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with email sent to every user

Post by atrol »

The log file shows that the email will be sent only to user with id 1.
There are some other users collected that should get a notification and are dropped afterward as they deactivated the notification for notes.
I see nothing wrong in it.
Please use Search before posting and read the Manual
mari001

Re: Problem with email sent to every user

Post by mari001 »

Well, now I have deactivated the notification for most of the users in order to no bother them but it is activated for 2 of them for the test. I will activate all of them and test again because the fact is that they received the emails, that is sure.
I will send you the new log when I do the new test.
Thanks for your help
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with email sent to every user

Post by atrol »

You should also attach a screenshot of page Manage > Manage Configuration > E-mail Notifications of the affected project.
Ensure that the screenshot is taken with selected project in project drop down (don't choose "All Projects")
Please use Search before posting and read the Manual
mari001

Re: Problem with email sent to every user

Post by mari001 »

Hi,

I did a new test and send you the log and the screenshot. I think that it worked fine again, but I don't know why. I think that I am going to monitor the emails next days in order to find if it happens again or it is solved.

Thanks for your help
Attachments
mantisbt.log
(3.69 KiB) Downloaded 344 times
Email configuration.jpg
Email configuration.jpg (184.37 KiB) Viewed 9102 times
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with email sent to every user

Post by atrol »

mari001 wrote:I configured the email notifications in: Manage > Manage Configuration > E-mail Notifications and the emails are sent only to the users that open a ticket or the managers.
Probably not.
Your screenshot shows for example that you configured that all reporters are getting notifications whenever a note is added to any issue .
This is what happens if you enable the checkbox in row "E-mail on Note Added" column "reporter" in section "Access Levels".
This systems does just what you configured.
Please use Search before posting and read the Manual
mari001

Re: Problem with email sent to every user

Post by mari001 »

Hi Atrol,

I thought that that checkbox in row "E-mail on Note Added" was to send an email when a Note was added, if you check "User who reported issue"; "user who is handling the issue" etc. It would only be sent to those roles. ¿It is not like this? I have the same configuration in the other MantisBT version and the behavior is different, it only send emails to the user who reported the issue or the manager who is monitoring the issue.

Thanks
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with email sent to every user

Post by atrol »

I wrote "checkbox in row "E-mail on Note Added" column "reporter" in section "Access Levels"
Not column "User who reported issue", this one is ok for your need.
Please use Search before posting and read the Manual
mari001

Re: Problem with email sent to every user

Post by mari001 »

Ok, understood. I thought that column was needed to be check in order to permit to all "reporter" users to receive emails, but related to their own issues, not other's. But now I know that it is not like this I will uncheck that colum.

Thanks
Post Reply