How to configure email notification

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
trung751581
Posts: 4
Joined: 28 Dec 2016, 16:38

How to configure email notification

Post by trung751581 »

Hi all,

I just installed new Mantis on my computer. Project and bug have been created.
Now i want to configure Mantis to send email to Owner (Originator or Reporter) and assign people when the bug is changed to "assigned" status . I try some method on internet but still can not get email when administrator change bug status to assign. Please teach me how to configure that

Thanks
Henry
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to configure email notification

Post by atrol »

Check settings on page My Account > Preferences
Ensure that "E-mail on Status Change" is checked.
Please use Search before posting and read the Manual
trung751581
Posts: 4
Joined: 28 Dec 2016, 16:38

Re: How to configure email notification

Post by trung751581 »

Hi bro,

This is my config:
#Quote
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysqli';
$g_database_name = 'aname';
$g_db_username = 'root';
$g_db_password = '';
$g_default_timezone = 'Europe/Vienna';
$g_crypto_master_salt = 'BD+GenZLjQQ04+JNQe5S3hSLP9AOaLiE4whENmkqv0E=';
$g_login_method = LDAP;
$g_ldap_server = '10.142.38.60:389';
//$g_ldap_port = '389';
$g_ldap_root_dn = 'CN=Users,DC=duongtuan,DC=com';
$g_ldap_organization = '';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'CN=administrator,CN=Users,DC=duongtuan,DC=com';
$g_ldap_bind_passwd = '*******';
$g_use_ldap_email= ON;
$g_validate_email= ON;
$g_ldap_follow_referrals = OFF;
$g_use_ldap_realname = ON;
$g_ldap_protocol_version = 3;
$g_log_level = LOG_LDAP;
$g_log_destination = 'file:C:/mantis_log/mantisbt.log';
# --- Email Configuration ---
$g_allow_signup = ON;
$g_enable_email_notification = ON; # //enables the email messages
$g_phpMailer_method = 2; #PHPMAILER_METHOD_SMTP
$g_smtp_host = 'mail.duongtuan.com';
$g_smtp_connection_mode = '';
$g_smtp_port = 25;
$g_from_email = 'administrator@duongtuan.com';
$g_smtp_username = 'administrator';
$g_smtp_password = '********';
$g_administrator_email = 'administrator@duongtuan.com';
$g_email_receive_own = ON;
$g_allow_blank_email = ON;
$g_email_send_using_cronjob = ON;
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_LDAP;;
$g_log_destination = 'file:C:/mantis_log/mantisbt_mail.log';
#UNQUOTE

This is my mantisbt_mail.log when i issue something or change status:
#QUOTE
2016-12-30 12:11 CET MAIL email_api.php:856 email_bug_added() Issue #9 reported
2016-12-30 12:11 CET RECIPIENT email_api.php:278 email_collect_recipients() Issue = #9, add @U1 (reporter)
2016-12-30 12:11 CET RECIPIENT email_api.php:288 email_collect_recipients() Issue = #9, add @U1 (handler)
2016-12-30 12:11 CET RECIPIENT email_api.php:355 email_collect_recipients() Issue = #9, add @U1 (based on access level)
2016-12-30 12:11 CET RECIPIENT email_api.php:355 email_collect_recipients() Issue = #9, add @U3 (based on access level)
2016-12-30 12:11 CET RECIPIENT email_api.php:355 email_collect_recipients() Issue = #9, add @U4 (based on access level)
2016-12-30 12:11 CET LDAP ldap_api.php:227 ldap_get_field_from_username() Retrieving field 'mail' for 'administrator'
2016-12-30 12:11 CET LDAP ldap_api.php:230 ldap_get_field_from_username() Binding to LDAP server
2016-12-30 12:11 CET LDAP ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI '10.142.38.60:389'.
2016-12-30 12:11 CET LDAP ldap_api.php:66 ldap_connect_bind() Connection accepted by LDAP server
2016-12-30 12:11 CET LDAP ldap_api.php:79 ldap_connect_bind() Setting LDAP protocol version to 3
2016-12-30 12:11 CET LDAP ldap_api.php:101 ldap_connect_bind() Attempting bind to ldap server with username and password
2016-12-30 12:11 CET LDAP ldap_api.php:114 ldap_connect_bind() Bind to ldap server successful
2016-12-30 12:11 CET LDAP ldap_api.php:241 ldap_get_field_from_username() Searching for (&(sAMAccountName=administrator))
2016-12-30 12:11 CET LDAP ldap_api.php:259 ldap_get_field_from_username() Unbinding from LDAP server
2016-12-30 12:11 CET LDAP ldap_api.php:272 ldap_get_field_from_username() Found value 'Administrator@duongtuan.com' for field 'mail'.
2016-12-30 12:11 CET LDAP ldap_api.php:227 ldap_get_field_from_username() Retrieving field 'mail' for 'hoang.nguyenminh'
2016-12-30 12:11 CET LDAP ldap_api.php:230 ldap_get_field_from_username() Binding to LDAP server
2016-12-30 12:11 CET LDAP ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI '10.142.38.60:389'.
2016-12-30 12:11 CET LDAP ldap_api.php:66 ldap_connect_bind() Connection accepted by LDAP server
2016-12-30 12:11 CET LDAP ldap_api.php:79 ldap_connect_bind() Setting LDAP protocol version to 3
2016-12-30 12:11 CET LDAP ldap_api.php:101 ldap_connect_bind() Attempting bind to ldap server with username and password
2016-12-30 12:11 CET LDAP ldap_api.php:114 ldap_connect_bind() Bind to ldap server successful
2016-12-30 12:11 CET LDAP ldap_api.php:241 ldap_get_field_from_username() Searching for (&(sAMAccountName=hoang.nguyenminh))
2016-12-30 12:11 CET LDAP ldap_api.php:259 ldap_get_field_from_username() Unbinding from LDAP server
2016-12-30 12:11 CET LDAP ldap_api.php:272 ldap_get_field_from_username() Found value 'hoang.nguyenminh@duongtuan.com' for field 'mail'.
2016-12-30 12:11 CET LDAP ldap_api.php:227 ldap_get_field_from_username() Retrieving field 'mail' for 'ha.nguyenngoc'
2016-12-30 12:11 CET LDAP ldap_api.php:230 ldap_get_field_from_username() Binding to LDAP server
2016-12-30 12:11 CET LDAP ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI '10.142.38.60:389'.
2016-12-30 12:11 CET LDAP ldap_api.php:66 ldap_connect_bind() Connection accepted by LDAP server
2016-12-30 12:11 CET LDAP ldap_api.php:79 ldap_connect_bind() Setting LDAP protocol version to 3
2016-12-30 12:11 CET LDAP ldap_api.php:101 ldap_connect_bind() Attempting bind to ldap server with username and password
2016-12-30 12:11 CET LDAP ldap_api.php:114 ldap_connect_bind() Bind to ldap server successful
2016-12-30 12:11 CET LDAP ldap_api.php:241 ldap_get_field_from_username() Searching for (&(sAMAccountName=ha.nguyenngoc))
2016-12-30 12:11 CET LDAP ldap_api.php:259 ldap_get_field_from_username() Unbinding from LDAP server
2016-12-30 12:11 CET LDAP ldap_api.php:272 ldap_get_field_from_username() Found value 'ha.nguyenngoc@duongtuan.com' for field 'mail'.
#UNQUOTE

I think i have correct config but Mantis is still not send email to user as i setup rule on Email notification. Please help me to check

Thanks
Post Reply