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: 12 Dec 2016, 13:45

Send Submitted bug email to CC people

Post 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,
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Send Submitted bug email to CC people

Post by atrol »

I moved the post to the right forum.
Please use Search before posting and read the Manual
serdaryildirim
Posts: 23
Joined: 12 Dec 2016, 13:45

Re: Send Submitted bug email to CC people

Post by serdaryildirim »

How can i send Bug Submitted notification mails to people which are in CC ? Help pls
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Send Submitted bug email to CC people

Post 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
serdaryildirim
Posts: 23
Joined: 12 Dec 2016, 13:45

Re: Send Submitted bug email to CC people

Post 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.
Attachments
emailreportingconfig.png
emailreportingconfig.png (34.12 KiB) Viewed 6700 times
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Send Submitted bug email to CC people

Post 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
Post Reply