Page 1 of 1

Send Submitted bug email to CC people

Posted: 06 Nov 2017, 08:18
by serdaryildirim
Hello

I send an email
TO : Ali
CC : Veli

The bug submitted, "Bug Submitted" email comes to Ali.

How can i send Bug Submitted email to Veli ?
I want to send "Bug Submitted" notification mail to CC people.

My config
// Add users from Cc and To field in mail header
'mail_add_users_from_cc_to' => ON,

Re: Send Submitted bug email to CC people

Posted: 06 Nov 2017, 08:31
by atrol
I moved the post to the right forum.

Re: Send Submitted bug email to CC people

Posted: 06 Nov 2017, 13:32
by serdaryildirim
How can i send Bug Submitted notification mails to people which are in CC ? Help pls

Re: Send Submitted bug email to CC people

Posted: 06 Nov 2017, 17:36
by SL-Gundam
EmailReporting should work the same way MantisBT does.

MantisBT does not add monitors during issue creation. You can add them after the issue has already been created. Because of this EmailReporting also adds the monitors after the new issue notification has been sent.
Based on current design what you want is not possible

But if you really want this, do the following
Add this code

Code: Select all

//Add the users in Cc and To list in mail header
$this->add_monitors( $t_bug_id, $p_email );
to this line https://github.com/mantisbt-plugins/Ema ... .php#L1054

After this it should work as you desire... assuming MantisBT's notification system has been properly configured to notify monitors of new issues

Re: Send Submitted bug email to CC people

Posted: 07 Nov 2017, 06:15
by serdaryildirim
I added that code, Submitted mail comes who submitted issue,

But submitted mail dont goes to CC people. I attached my email reporting configuration.

Re: Send Submitted bug email to CC people

Posted: 07 Nov 2017, 20:07
by SL-Gundam
Check whether the CC people are on the monitoring list in the created issue in question. If they are not then you need to make sure that the users in question have a MantisBT account
Then check whether MantisBT notifies monitors of the necessary actions. "Status changes to 'new'" for "Users monitoring this issue" needs to turned on