However, I found no email sent, even once, neither the register operation, nor the 'forget password' operation. Instead, the following error message always appears in my browser:
APPLICATION ERROR #1905
My mantis codes are located at:
/data/web_server/mantisbt-2.20.0/
and my config_inc.php is located at:
/data/web_server/mantisbt-2.20.0/config/
I can assure that this configuration file is working, for if I change the following time-zone configuration to some invalid value, related errors will appear in my httpd logs.
However, none of the email-related configurations works:
Code: Select all
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/tmp/mantisbt.log';
$g_phpMailer_method = PHPMAILER_METHOD_MAIL;
$g_smtp_host = 'localhost';
$g_smtp_username = 'reco_mantis@127.0.0.1';
$g_smtp_password = 'xxxxx';
$g_webmaster_email = 'reco_mantis@127.0.0.1';
$g_from_email = 'reco_mantis@127.0.0.1';
$g_return_path_email = 'reco_mantis@127.0.0.1';
1. No matter how I change g_log_destination, there will be logs output.
2. I tried to setup a local fake smtp server, and change g_phpMailer_method to PHPMAILER_METHOD_SMTP, while the server receives nothing when I try to send email.
3. There are no logs output in the httpd logs if I try to send an email.
4. After searching all php codes of mantis for usage of 'g_log_destination' I can only find the following results, none of which met my expectation that there should be some function 'reading the value of g_log_destination and do the log writing':
Code: Select all
admin/check/check_config_inc.php: !($g_log_destination == 'firebug' || $g_log_destination == 'page'),
config_defaults_inc.php: * Refer to {@link $g_log_destination} for details on where to save the logs.
config_defaults_inc.php: * @global string $g_log_destination
config_defaults_inc.php:$g_log_destination = '';
config_defaults_inc.php: * (if {@link $g_log_destination} is 'page').
config/config_inc.php:$g_log_destination = 'file:/tmp/mantisbt.log';