send_mails.php not functioning - configuration?
Posted: 05 Apr 2011, 20:07
config_inc.php reads
<?php
$g_hostname = ‘localhost’;
$g_db_type = ‘mysql’;
$g_database_name = ‘bitnami_mantis’;
$g_db_username = ‘bn_mantis’;
$g_db_password = ‘c210c121cf’;
$g_phpMailer_method = 1;
$g_from_email = ‘bitnami’;
$g_allow_file_upload = OFF;
$g_window_title = ‘MantisBugTracker’;
?>
MantisBT is running on both the URL from a client pc and localhost from the server.
I am trying to get email to work and so I tried
php /opt/lampstack-1.2-5/apps/mantis/htdocs/scripts/send_emails.php
The result was:
So how I am supposed to configure items so that email is sent via the sendmail on the host (CentOS5.5) pc?
thanks
<?php
$g_hostname = ‘localhost’;
$g_db_type = ‘mysql’;
$g_database_name = ‘bitnami_mantis’;
$g_db_username = ‘bn_mantis’;
$g_db_password = ‘c210c121cf’;
$g_phpMailer_method = 1;
$g_from_email = ‘bitnami’;
$g_allow_file_upload = OFF;
$g_window_title = ‘MantisBugTracker’;
?>
MantisBT is running on both the URL from a client pc and localhost from the server.
I am trying to get email to work and so I tried
php /opt/lampstack-1.2-5/apps/mantis/htdocs/scripts/send_emails.php
The result was:
I am befuddled. especially since the administrator name is 'phpbb' but if I put that into the config_inc.php file the whole MantisBT system fails, not just email.<html><head><title>APPLICATION ERROR #400</title></head><body><br /><div align="center"><table class="width50" cellspacing="1"><tr><td class="form-title">APPLICATION ERROR #400</td></tr><tr><td><p class="center" style="color:red">Database connection failed. Error received from database was #1045: Access denied for user 'bn_mantis'@'localhost' (using password: YES).</p></td></tr><tr><td><p class="center">Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.</p></td></tr></table></div><p>Previous non-fatal errors occurred. Page contents follow.</p><div style="border: solid 1px black;padding: 4px"><p style="color:red">SYSTEM WARNING: mysql_connect(): Access denied for user 'bn_mantis'@'localhost' (using password: YES)</p></div></body></html>
So how I am supposed to configure items so that email is sent via the sendmail on the host (CentOS5.5) pc?
thanks