title: Configuring MantisBT to send emails using GMail
body: <p>I am new to Mantis bug tracker and I want to enable the email notification after registering for a new account.</p>
  
  <p>Well, I installed the MantisBT correctly without any problem on my local computer, I already changed the admin's password and removed the admin folder in the directory. After this I signed up for a new account, there was a confirmation message flashed saying that I need to verify my registration via email. My problem here is that no verification message was sent to my email. According to one of the tutorials I found, I need to configure first my <strong>config_inc.php</strong>. After the installation, the initial content of my config_inc.php was</p>
  
  <pre><code>&lt;?php
  $g_hostname      = 'localhost';
  $g_db_username   = '&lt;myUser&gt;';
  $g_db_password   = '&lt;myPass&gt;';
  $g_database_name = 'bugtracker';
  $g_db_type       = 'mysql';
  ?&gt;
  </code></pre>
  
  <p>So I changed it to.
  *<em>I am using my gmail account here</em></p>
  
  <pre><code>&lt;?php
  $g_hostname      = 'localhost';
  $g_db_username   = '&lt;myUser&gt;';
  $g_db_password   = '&lt;myPass&gt;';
  $g_database_name = 'bugtracker';
  $g_db_type       = 'mysql';
  
  $g_allow_signup             = ON;
  $g_allow_anonymous_login    = OFF;
  $g_anonymous_account        = '';
  
  $g_phpMailer_method     = PHPMAILER_METHOD_SMTP; 
  $g_smtp_host            = 'smtp.gmail.com';
  $g_smtp_username        = '&lt;myUser@gmail.com&gt;';
  $g_smtp_password        = '&lt;myPass&gt;';
  $g_administrator_email  = '&lt;myUser@gmail.com&gt;';
  $g_webmaster_email      = '&lt;myUser@gmail.com&gt;';
  $g_from_name            = 'Mantis Bug Tracker';
  $g_from_email           = '&lt;myUser@gmail.com&gt;';
  $g_return_path_email    = '&lt;myUser@gmail.com&gt;';
  $g_email_receive_own    = OFF;
  $g_email_send_using_cronjob = OFF;
  
  $g_allow_file_upload    = ON;
  $g_file_upload_method   = DATABASE;
  $g_absolute_path_default_upload_folder = '';
  $g_max_file_size        = 5000000;
  $g_preview_attachments_inline_max_size = 256 * 1024;
  $g_allowed_files        = '';
  $g_disallowed_files     = '';
  
  $g_window_title         = 'MantisBT';
  $g_logo_image           = 'images/mantis_logo.gif';
  $g_favicon_image        = 'images/favicon.ico';
  
  $g_show_realname = OFF;
  $g_show_user_realname_threshold = NOBODY;
  
  $g_default_home_page = 'my_view_page.php';
  ?&gt;
  </code></pre>
  
  <p>I overwrite my <strong>config_inc.php</strong> with this one and then register for a new account. After submitting the information, an error occured saying: </p>
  
  <blockquote>
    <p>Fatal error: Call to undefined method SMTP::getError() in &lt; myDirectory >\mantis\library\phpmailer\class.phpmailer.php on line 1910. </p>
  </blockquote>
  
  <p>And now I'm stucked, please help me with this, I need to setup my email notification. I was just creating accounts but I cannot use them because I need to verify it.</p>
  
  <p>Please let me know if I need to modify some of the related files and what are the steps.</p>
  
  <p>Thanks for the help!</p>