Tracking or logging email

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
El_Greg
Posts: 47
Joined: 27 Apr 2006, 07:20
Location: FRANCE

Tracking or logging email

Post by El_Greg »

Hi everyone,

In some case, bug notifications are not sent... I don't understand why.
Is there a solution to see if an email has been sent when someone did a change. A great mean would be to store in the bug history the email notification.

Thanks in advance if you have any idea.

Regards

Grégory
roga
Posts: 5
Joined: 19 Nov 2007, 15:46

Re: Tracking or logging email

Post by roga »

El_Greg wrote:Hi everyone,

In some case, bug notifications are not sent... I don't understand why.
Is there a solution to see if an email has been sent when someone did a change. A great mean would be to store in the bug history the email notification.

Thanks in advance if you have any idea.

Regards

Grégory
any solutions for this problem?
vzw614
Posts: 143
Joined: 15 May 2008, 14:59

Re: Tracking or logging email

Post by vzw614 »

In config_inc.php add the following lines (if you don't have config_inc.php copy/rename config_inc.php.sample)

# --- system logging ---
# This controls the logging of information to a separate file for debug or audit
# $g_log_level controls what information is logged
# see constant_inc.php for details on the log channels available
# e.g., $g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_FILTERING | LOG_AJAX;
#
# $g_log_destination specifies the file where the data goes
# right now, only "file:<file path>" is supported
# e.g. (Linux), $g_log_destination = 'file:/tmp/mantis.log';
# e.g. (Windows), $g_log_destination = 'file:c:/temp/mantis.log';
# see http://www.php.net/error_log for details
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:c:/mantis/mantis.log';

Of course change the location of the log file to a valid location on your installation.
Post Reply