Mantis Logo
Mantis Manual
Manual
Customizing Mantis

Custom Fields
Enumerations
Email Notifications
Customizing Status Values
LDAP
Custom Functions


Partner Links


Email Notifications
Last Modified: August 23, 2004 09:08AM
(Any)
Description

See Email in the Configuration section.

Examples:

  • Notify only managers of new issues.
    $g_notify_flags['new']['threshold_min'] = MANAGER; $g_notify_flags['new']['threshold_max'] = MANAGER;

  • Notify Developers and managers of all project events, except, exclude developers from the 'closed' events.
    $g_default_notify_flags['threshold_min'] = DEVELOPER; $g_default_notify_flags['threshold_max'] = MANAGER; $g_notify_flags['closed']['threshold_max'] = MANAGER; $g_notify_flags['closed']['threshold_max'] = MANAGER;

  • Exclude those who contributed bug notes from getting messages about other changes in the bug.
    $g_default_notify_flags['bugnotes'] = OFF;

  • Exclude those monitoring bugs from seeing the 'closed' message
    $g_notify_flags['closed']['monitor'] = OFF;

  • Only notify developers when bugnotes are added.
    $g_notify_flags['bugnote']['threshold_min'] = DEVELOPER; $g_notify_flags['bugnote']['threshold_max'] = DEVELOPER;

  • Notify managers of changes in sponsorship.
    $g_notify_flags['sponsor']['threshold_max'] = MANAGER; $g_notify_flags['sponsor']['threshold_max'] = MANAGER;

  • Notify originator and managers of changes in ownership ("Assigned To:").
    $g_notify_flags['owner']['threshold_max'] = MANAGER; $g_notify_flags['owner']['threshold_max'] = MANAGER; $g_notify_flags['owner']['reporter'] = ON;

  • I'm paranoid about mail. Only send information on issues to those involved in them. Don't send mail people already know about. Also send new bug notifications to managers so they can screen them.
    $g_mail_receive_own = OFF; $g_default_notify_flags = array('reporter' => ON, 'handler' => ON, 'monitor' => ON, 'bugnotes' => ON, 'threshold_min' => NOBODY, 'threshold_max' => NOBODY); $g_notify_flags['new']['threshold_min'] = MANAGER; $g_notify_flags['new']['threshold_max'] = MANAGER;

  • How do I replace the $g_to_email configuration variable to log all messages to an email logger.

    You will need to create a dummy user with the appropriate access level for the notices you want to log. Once this user is added to projects, they will receive mail using the appropriate rules.
















User Contributed Notes
Email Notifications
Add Notes About Notes
tmh@nodomain.org
15-Nov-2004 10:48
#260
There in unfortunately no replacement for $g_to_email when projects are public.

The explanation above is saying that I have to enable emails for every single user (since everyone is automatically a member of a public project) just to get emails for one of them... that sucks. The *only* user I want to be notified is the $g_to_email user. Other users don't want the junk.
jeff@SPAMGOAWAYwigaldesign.com
07-Dec-2004 7:44
#280
In the last section of this page it talks about a tag called:

$g_mail_receive_own = OFF;

The configuration page references a tag called:

$g_email_receive_own = OFF;

Are both allowed or is one a typo?
This makes my head hurt
14-Jan-2005 14:28
#328
Setting up permissions for e-mail notification is cake if you want to assign thresholds, but it's been aggravating to try to only include certain roles in notification. I'm trying to eliminate e-mail notifications for everyone except user who choose to monitor the bug. I've set up the notifications, like so:

$g_default_notify_flags = array('reporter' => OFF,
'handler' => OFF,
'monitor' => ON,
'bugnotes' => ON,
'threshold_min' => NOBODY,
'threshold_max' => NOBODY);
$g_notify_flags['owner'] = array('monitor' => ON);
$g_notify_flags['reopened'] = array('monitor' => ON);
$g_notify_flags['deleted'] = array('monitor' => ON);
$g_notify_flags['updated'] = array('monitor' => ON);
$g_notify_flags['bugnote'] = array('monitor' => ON);
$g_notify_flags['sponsor'] = array('monitor' => ON);
$g_notify_flags['relation'] = array('monitor' => ON);
$g_notify_flags['feedback']['monitor'] = ON;
$g_notify_flags['acknowledged']['monitor'] = ON;
$g_notify_flags['confirmed']['monitor'] = ON;
$g_notify_flags['assigned']['monitor'] = ON;
$g_notify_flags['resolved']['monitor'] = ON;
$g_notify_flags['closed']['monitor'] = ON;

Currently, bug monitors get e-mails on SOME status changes (confirm, acknowledge) but not others (specifically resolve). There doesn't seem to be a good explanation of how to set this up anywhere in the docs, and I can't find an explanation of the constants ( "ANYBODY", "NOBODY" ) or how they are treated in the rule sets anywhere. An "allow all except/deny all except" boolean would be a nice feature.
mike.whisky_papa.hotel.india.limaATyahoo.dot.co.dot.uk
09-Feb-2005 10:09
#348
This is one set of configurations that is crying out for a Manage page ...

Or at least a set of email notification profiles for each project, such as everything, minimal, none, manager only ...
damien@nospam.com
10-Mar-2005 14:01
#373
Hi,

I'am having many trouble to.

I think that the biggest problem is that there no docs for the terms used such as MANAGER, TRESHOLD, BUGNOTES... we just have to guess what they refer to !!!

For my part i want :
- all manager to be email advised when there are new tasks, bugnotes and so on for every change in a bug
- developer to get email advised for all regarding a bug, ONLY after they are assigned to it
- for all the other members status i need them to get advised on bug opening and resololution

The best thing should be to get an email notification panel or better a user and group definition for the all system and then by project (you can see flyspray for that part...)

regards ;)
mike.cannell@jegs.com
16-May-2005 8:19
#436
I too struggled with getting the notifications to behave how I wanted. I finally got it to work.

I wanted new bugs to only notify me (administrator)
I wanted assigned bugs to notify whoever was assiged

Here are my settings:
$g_default_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'owner' => ON,
'bugnotes' => ON,
'threshold_min' => NOBODY,
'threshold_max' => NOBODY);

$g_notify_flags['new'] = array('bugnotes' => OFF,
'administrator' => ON,
'monitor' => OFF);

Notice I added "administrator"

Now I am assigned all NEW bugs and then I can assign them to whomever I want.

THe only thing I would like to see is a STATUS in the subject line. So when it is resolved it would say RESOLVED in the subject line.
atippett@sports-it.com
02-Aug-2005 20:35
#550
To get administrator to get email notifications I set the following:
        $g_notify_flags['new']['threshold_min'] = DEVELOPER;
        $g_notify_flags['new']['threshold_max'] = ADMINISTRATOR;
        $g_notify_flags['updated']['threshold_min'] = DEVELOPER;
        $g_notify_flags['updated']['threshold_max'] = ADMINISTRATOR;
        $g_notify_flags['bugnote']['threshold_min'] = DEVELOPER;
        $g_notify_flags['bugnote']['threshold_max'] = ADMINISTRATOR;
?>
Public to Private
06-Oct-2005 12:35
#638
We have switched a project from public to private and now have trouble receiving emails to all the users. Is it not possible/not a good idea to move projects from public to private? Do we need to delete the projects in public first and then recreate them in private?
jbpotokar@aubay.com
24-Oct-2005 15:15
#676
Hello,

I have problem since I changed a project from public to private : e-mail notification don't work anymore one those project. What can I do ? How does it work ?
zhengcb@netpower.com.cn
24-Oct-2005 23:19
#677
me too, met such a problem. No only the project changed from public to private had the email problem, other projects were also influnced. Is there any solution to that? Thanks.
jbpotokar@aubay.com
25-Oct-2005 17:06
#678
I have this problem which I don't know how to fix. And I confim that all projects are affected.I'll change back form private to public, but how to prevent any reporter to be e-mail for any change on any bug ?
By the way, reminders keep working fine anyhow, so it's not an email server problem...
jbpotokar@aubay.com
26-Oct-2005 7:55
#680
AAAAARGHHH ! I changed back my projects from private to public... but no email notification works again. Only the reminders work, all others never arrive... Any help welcome !!!
semenion@ukr.net
03-Nov-2005 11:10
#693
How can i add to user the second e-mail address? So that Email Notifications is sent to two e-mail address.
jbpotokar@aubay.com
07-Nov-2005 17:19
#703
Ok, concerning my problem to migrate projects from public to private, the error was mine. I had changed the same day the configuration of the users, and unselect the ability to receive mails. Now that I have corrected this, it works fine. Hope that helps anyone as dumb as I.
Sending mails to 2 addresses
07-Nov-2005 17:26
#705
I don't think there is a good way to do so. But if you create a second user, same rights, different address, it will work.
jukiller@hotmail.com
29-Nov-2005 9:34
#735
Is it possible to change the format of the mails content ?
lami@sitecoinf.it
06-Dec-2005 5:20
#748
Goodmorning

I'm in trouble
My setting:
$g_default_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'threshold_min' => ANYBODY,
'threshold_max' => NOBODY);
#
but no email is sent to manager assigned (as manager) to the public project.
Thx
Maria Rita
manish_fic@yahoo.com
09-Mar-2006 6:04
#919
Finding notification should sent to all developers instead of assigne

I want to set my email notification in such a way that any bug or finding if raise, Email notification will go to all the developers instead of assigne. so if assign is not present than other developers can pick the same.

yourname@NOSPAMyourdomain.com
06-Jul-2006 15:12
#1181
Hi guys! Is it possible to turn the email notification OFF on "Create New User" so that newly created users don't receive an email?
jbueno@ftsp.ten.fujitsu.com
31-Jul-2006 3:35
#1204
Good day, Mantis people.

We are new users of Mantis. We have implemented Mantis in our department recently(March 2006), our staffs wishes to have the E-mail Notification feature. The problem is we do not know how to enable this feature.

Our group would like to ask for help in enabling the E-mail notification feature.
How can this be done? Please give us a detailed guide to enable this.
Here is our e-mail server setting:
Incoming: POP3
Outgoing: SMTP

Thank you.

More power to Mantis.

†††††††††††††††††††††††††††††††††††††††††††
Joseph Leunimar V. Bueno
Email:jbueno@ftsp.ten.fujitsu.com
†††††††††††††††††††††††††††††††††††††††††††
smig1o@gazeta.pl
30-Nov-2006 7:18
#1311
Hi..
How to set email notification to force Mantis to send notification only to manager of specyfic project, not to all managers...
gunakar.p2@zensar.com
02-Jan-2007 6:30
#1329
Hi There!

I have very Basic question like , how and what to enable once the installation of mantis is done ,so that it can send the mail to the associate e-mail ID given by the user while signing up as a new user.....

Thanks
Gk
Add Notes About Notes
Last updated: Wed, 23 Jul 2008 - 14:49:00

Mantis @ SourceForge