View Issue Details

IDProjectCategoryView StatusLast Update
0015897mantisbtemailpublic2013-06-02 17:39
Reporteramalcam Assigned Toatrol  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
OSWindowsOS VersionXP 
Product Version1.1.6 
Summary0015897: set up email notification
Description

Hi,
I m novice in mantisBT. I've just installed it on my PC in order to use in my compagny.I'm the mantis administrator, i tried to manage the users and projects wihtout any problem but when I want to get notification by email when I report a new issue or assign it to a developper it doesn't work.
I have this config in the config_inc.php :
$g_phpMailer_method='2';
$g_smtp_host='the.IP.address.OF.SMTPSERVER';
$g_administrator_email='Myemailcampagny';
$g_webmaster_email=$g_administrator_email;
$g_from_email=$g_administrator_email;
$g_from_name= 'Mantis Bug Tracker';
$g_smtp_port=25;
$g_email_receive_own=OFF;
$g_email_send_using_cronjob = OFF;
$g_smtp_username = '';
$g_smtp_password = '';
$g_enable_email_notification='ON';
$g_send_reset_password='ON';
$g_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'explicit' => ON,
'threshold_min' => ANYBODY,
'threshold_max' => NOBODY);

send new bug notifications to managers so they can screen them

$g_notify_flags['new']['threshold_min'] = DEVELOPER;
$g_notify_flags['new']['threshold_max'] = ADMINISTRATOR;
$g_use_ldap_email = OFF;

TagsNo tags attached.

Activities

dregad

dregad

2013-05-22 06:02

developer   ~0036939

Please note that version 1.1 is no longer supported. Please upgrade to latest version (1.2.15). Once done, please check with advice below

$g_phpMailer_method='2';

You should use one of the predefined constants, not a hardcoded value.

For SMTP, make sure you set $g_smtp_username, $g_smtp_password, $g_smtp_connection_mode, $g_smtp_port as appropriate.

Test e-mail settings with the admin -> test email page

If it doesn't work, increase logging ($g_log_level = LOG_EMAIL, $g_log_destination = ...)

amalcam

amalcam

2013-05-22 06:22

reporter   ~0036940

hi,
thanks for your quick feedback, I set the log and I got this error :(sorry it'in french)
"APPLICATION WARNING #100: L'option de configuration « use_ldap_email » n'a pas été trouvé."
It mean that it didn't find the setup otion use_ldap_email in the config_inc.php
but when I add this option in the config file :
$g_use_ldap_email = OFF
I got no error and no mail sent also.
Another questions :
I'm sure on the $g_smtp_connection_mode, $g_smtp_port but I don't know where to find these values $g_smtp_username, $g_smtp_password.
How can I test the email page ?
amal
thanks in advance for your help.
Am

dregad

dregad

2013-05-22 07:50

developer   ~0036941

(sorry it'in french)

T'inquiète pas pour le français ;-)

"APPLICATION WARNING #100: L'option de configuration « use_ldap_email » n'a pas été trouvé."

That's weird, you'd only get this message if the option does not exist in config_defaults_inc.php. Are you sure your system was setup properly as per documentation ?

$g_use_ldap_email = OFF

not valid if you don't use ldap authentication - you can probably remove it from your config_inc.php if you don't.

I don't know where to find these values $g_smtp_username, $g_smtp_password.

Only needed if your SMTP server requires authentication, otherwise leave blank.

How can I test the email page ?

http://path/to/mantisbt/admin/test_email.php

amalcam

amalcam

2013-05-22 10:24

reporter   ~0036944

merci ;-)
I update the config_defaults_inc.php with the right value $g_use_ldap_email = OFF instead of Email (E in upper case). I don't receive the error again.
I also define the smtp user (password) for mantis and I don't receive any email and the email log file is empty.
I test also the email page and I got the internet explorer message again in french ;-) "Internet explorer ne peut pas afficher cette page web".
My config_inc.php is like that now :
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = '';

Configuration du mode de mail

$g_phpMailer_method = 2;
$g_smtp_host = 'the.smtp.ip.adress';
$g_smtp_username = 'smtpuserformantis';
$g_smtp_password = 'smtppwd';
$g_smtp_port = 25;
$g_smtp_connection_mode = '';
$g_administrator_email = 'me@mycompagny.com';
$g_webmaster_email = 'me@mycompagny.com';
$g_from_email = 'me@mycompagny.com';
$g_from_name = 'me@mycompagny.com';
$g_return_path_email = 'me@mycompagny.com';
$g_enable_email_notification='ON';
$g_send_reset_password='ON';
$g_notify_flags = array('reporter' => ON,
'handler' => ON,
'monitor' => ON,
'bugnotes' => ON,
'explicit' => ON,
'threshold_min' => ANYBODY,
'threshold_max' => NOBODY);

send new bug notifications to managers so they can screen them

$g_notify_flags['new']['threshold_min'] = DEVELOPER;
$g_notify_flags['new']['threshold_max'] = ADMINISTRATOR;
$g_log_level = LOG_EMAIL;
$g_log_destination = 'file:c:/tmp/email.log';

Could you please help,
Thanks in advance,
Amal

amalcam

amalcam

2013-05-22 10:31

reporter   ~0036945

Additionnal info I can't find test_email.php in the admin directory of mantis.
is it due to the version of mantis 1.1.6 ?
Thanks in advance,
Amal

atrol

atrol

2013-05-22 10:38

developer   ~0036946

I didn't have a deeper look at your issue, at least this is wrong
$g_enable_email_notification='ON';
$g_send_reset_password='ON';
and should be
$g_enable_email_notification=ON;
$g_send_reset_password=ON;

amalcam

amalcam

2013-05-22 10:55

reporter   ~0036947

Hi, thanks a lot for your help. I've just upgraded the mantis to the version 1.2.15.
I found the testmail function and the email notification in the manage option (very important). I also modify the value as u have requested to ON and finally I receive the first mantis email.
you can close this issue.
And again merci beaucoup for your excellent support.
Amal

atrol

atrol

2013-05-22 11:07

developer   ~0036949

amalcam,

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums, the mantisbt-help mailing list or IRC to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).