Send Submitted bug email to CC people

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
serdaryildirim
Posts: 23
Joined: Dec 12, 2016 8:45 am

Send Submitted bug email to CC people

Post by serdaryildirim » Nov 06, 2017 3:18 am

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,

atrol
Site Admin
Posts: 7653
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Send Submitted bug email to CC people

Post by atrol » Nov 06, 2017 3:31 am

I moved the post to the right forum.
Please use Search before posting and read the Manual

serdaryildirim
Posts: 23
Joined: Dec 12, 2016 8:45 am

Re: Send Submitted bug email to CC people

Post by serdaryildirim » Nov 06, 2017 8:32 am

How can i send Bug Submitted notification mails to people which are in CC ? Help pls

SL-Gundam
Posts: 573
Joined: Jul 06, 2011 9:17 am

Re: Send Submitted bug email to CC people

Post by SL-Gundam » Nov 06, 2017 12:36 pm

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

serdaryildirim
Posts: 23
Joined: Dec 12, 2016 8:45 am

Re: Send Submitted bug email to CC people

Post by serdaryildirim » Nov 07, 2017 1:15 am

I added that code, Submitted mail comes who submitted issue,

But submitted mail dont goes to CC people. I attached my email reporting configuration.
Attachments
emailreportingconfig.png
emailreportingconfig.png (34.12 KiB) Viewed 2187 times

SL-Gundam
Posts: 573
Joined: Jul 06, 2011 9:17 am

Re: Send Submitted bug email to CC people

Post by SL-Gundam » Nov 07, 2017 3:07 pm

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

Post Reply