Setting up Email Configuration
Posted: 20 Feb 2012, 04:41
Hello people, I am new here in Mantis. I have this problem that my Mantis was not able to send my email notification. I started creating a new reporter account and I got this message:
Congratulations. You have registered successfully. You are now being sent a confirmation e-mail to verify your e-mail address. Visiting the link sent to you in this e-mail will activate your account.
But there's no email on my inbox coming from MAntis. I read some posts regarding this, they say that to enable the email notification we need to setup first config_inc.php.
This is the initial code after my successful installation.
config_inc.php
In my Mantis directory i found this one and I configure it myself.
config_inc.php.sample -> There was a note saying that rename this to config_inc.php so I did and overwrite the previous config_inc.php
After configuring this file, I signed up a new user again and got this message:
Fatal error: Call to undefined method SMTP::getError() in ..\mantis\library\phpmailer\class.phpmailer.php on line 1910
Please help me with this error, do I miss something? Or do I need to modify some of the related files here?
Please help!
Thanks!
Congratulations. You have registered successfully. You are now being sent a confirmation e-mail to verify your e-mail address. Visiting the link sent to you in this e-mail will activate your account.
But there's no email on my inbox coming from MAntis. I read some posts regarding this, they say that to enable the email notification we need to setup first config_inc.php.
This is the initial code after my successful installation.
config_inc.php
Code: Select all
<?php
# --- Database Configuration ---
$g_hostname = 'localhost';
$g_db_username = '<myUserName>';
$g_db_password = '<myPassword>';
$g_database_name = 'bugtracker';
$g_db_type = 'mysql';
?>
config_inc.php.sample -> There was a note saying that rename this to config_inc.php so I did and overwrite the previous config_inc.php
Code: Select all
<?php
# --- Database Configuration ---
$g_hostname = 'localhost';
$g_db_username = '<myUser>';
$g_db_password = '<myPass>';
$g_database_name = 'bugtracker';
$g_db_type = 'mysql';
# --- Anonymous Access / Signup ---
$g_allow_signup = ON;
$g_allow_anonymous_login = OFF;
$g_anonymous_account = '';
# --- Email Configuration ---
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'smtp.gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_username = '<myUser@gmail.com>'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = '<myPass>'; # used with PHPMAILER_METHOD_SMTP
$g_administrator_email = '<myUser@gmail.com>';
$g_webmaster_email = '<myUser@gmail.com>';
$g_from_name = 'Mantis Bug Tracker';
$g_from_email = '<myUser@gmail.com>'; # the "From: " field in emails
$g_return_path_email = '<myUser@gmail.com>'; # the return address for bounced mail
$g_email_receive_own = OFF;
$g_email_send_using_cronjob = OFF;
# --- Attachments / File Uploads ---
$g_allow_file_upload = ON;
$g_file_upload_method = DATABASE; # or DISK
$g_absolute_path_default_upload_folder = ''; # used with DISK, must contain trailing \ or /.
$g_max_file_size = 5000000; # in bytes
$g_preview_attachments_inline_max_size = 256 * 1024;
$g_allowed_files = ''; # extensions comma separated, e.g. 'php,html,java,exe,pl'
$g_disallowed_files = ''; # extensions comma separated
# --- Branding ---
$g_window_title = 'MantisBT';
$g_logo_image = 'images/mantis_logo.gif';
$g_favicon_image = 'images/favicon.ico';
# --- Real names ---
$g_show_realname = OFF;
$g_show_user_realname_threshold = NOBODY; # Set to access level (e.g. VIEWER, REPORTER, DEVELOPER, MANAGER, etc)
# --- Others ---
$g_default_home_page = 'my_view_page.php'; # Set to name of page to go to after login
?>
Fatal error: Call to undefined method SMTP::getError() in ..\mantis\library\phpmailer\class.phpmailer.php on line 1910
Please help me with this error, do I miss something? Or do I need to modify some of the related files here?
Please help!
Thanks!