Activate email notification when new problem was reported.

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
cjs
Posts: 10
Joined: 26 Oct 2009, 14:14
Location: Austria
Contact:

Activate email notification when new problem was reported.

Post by cjs »

Hi!

I am new to MantisBT, and it looks much butter than our old system!

The MantisBT e-mail systems is working! This means, i get the standard emails (like 'new user', 'confirmation email', and so on...).

But if a report-user reports a new problem, I (the administrator) get no email about this. So the problem waits for allocation to a reviser (e.g. a developer), but I doesn't know, that there is a problem waiting.

I think, I have to config this notification, but I didn't find any information about this.

Thanks for any hints,
Christian.
cjs
Posts: 10
Joined: 26 Oct 2009, 14:14
Location: Austria
Contact:

Re: Activate email notification when new problem was reported.

Post by cjs »

Hi!

I think, I found a solution by myself...

I am the only administrator, and I have only developers and reporters. There are no managers in my system.

I had to enter the following lines in my config_inc.php:

$g_notify_flags['new']['threshold_min'] = ADMINISTRATOR;
$g_notify_flags['new']['threshold_max'] = ADMINISTRATOR;

Now I get an email, when a reporter create a new issue. I am wondering, that I can't set such options in the konfiguration of my MantisBT installation!?

Greetings,
Christian.
m.karthikeyan
Posts: 2
Joined: 05 Nov 2009, 11:27

Re: Activate email notification when new problem was reported.

Post by m.karthikeyan »

Christ,

This is karthi. i'm new to mantis. in which file i need to provide my mail address and mail server name and hence i can receive mail once i registered as a new user. I given my mail address and mail server name in the 'g_smtp_host" and " g_smtp_username" in the config_defaults_inc.php file. but i could not receive any mail. Am i right or need to give this information in some other files?
Can u help me?

Thanks,
karthi.
cjs
Posts: 10
Joined: 26 Oct 2009, 14:14
Location: Austria
Contact:

Re: Activate email notification when new problem was reported.

Post by cjs »

Hi!

Sorry for the long time you have to wait for my answer, but I had some troubles with mantis myself.

You have to do this in the config_inc.php.

Here is an example of my extensions in my config_inc.php:

***
// *******************************************************************
// Ab hier kommen die von mir hinzugefuegten Konfigurationsaenderungen
// *******************************************************************

// Festlegen der Standardsprache.
// Siehe: http://docs.mantisbt.org/master/en/admi ... tml#AEN748
$g_default_language = 'german';

// E-Mail-Konfiguration:
// Siehe: http://docs.mantisbt.org/master/en/admi ... tml#AEN599
$g_administrator_email = '';
$g_webmaster_email = '';
$g_from_email = '';
$g_return_path_email = '';

$g_phpMailer_method = 'PHPMAILER_METHOD_SMTP';
$g_smtp_host = 'my.mailserver.com';
$g_smtp_port = '';
$g_smtp_connection_mode = '';
$g_smtp_username = '';
$g_smtp_password = '';

// Festlegen wer bei einem neuen Problem benachrichtigt werden soll.
// Siehe: http://docs.mantisbt.org/master/en/admi ... ml#AEN2258
$g_notify_flags['new']['threshold_min'] = ADMINISTRATOR;
$g_notify_flags['new']['threshold_max'] = ADMINISTRATOR;
***

My problem was, that some e-mails worked, and others not. So I changed the system to use my mailserver, and not the php-mail-function. Then I saw always the admin@example.com mail address in my logfile, because I had not defined the $g_return_path_email.

Now the system seems to be working, but I have to make some more tests...

Greetings,
Christian.
andreas123
Posts: 4
Joined: 15 Dec 2009, 12:26

Re: Activate email notification when new problem was reported.

Post by andreas123 »

You do not need to change the config_inc.php.
It's all in the Manage-Tab in Mantis.

You need to go to: "Manage -> Manage Configuration -> E-mail Notifications"

There is some documentation about this page:
http://manual.mantisbt.org/manual.page. ... ations.php

And here is an example:
Click near "Status changes to 'new'" on "developer" "manager" and "administrator" and everyone who has the access level of "developer" "manager" and "administrator" will receive an E-Mail Notification when new Issues are created. This notification can still get disabled by each user in "My Account -> Preferences".
moogyd
Posts: 3
Joined: 10 Dec 2009, 12:20

Re: Activate email notification when new problem was reported.

Post by moogyd »

Hi,

Thanks for this information - I was also having problems sending emails on new issues.

I managed to enable this functionality via the gui, but not by editing the config_inc.php (as described below).

When I used the config_inc.php method, the manager square on pafe manage_config_email_page.php was coloured blue, with no tick. What does this mean?

Thanks for any information.

Steven
Post Reply