How to Setup Mantis Bug Tracker Email Configuration from Gmail - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Thursday, October 24, 2019

How to Setup Mantis Bug Tracker Email Configuration from Gmail

Mantis Email Configuration Gmail works !

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_username = 'myuser@mydomain.com';
$g_smtp_password = 'mypassword';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 25

sudo nano /var/www/html/mantisbt/config_inc.php
g_phpMailer_method    = PHPMAILER_METHOD_SMTP;
$g_smtp_host    = 'smtp.gmail.com:465';
$g_smtp_username = 'username@gmail.com';
$g_smtp_password = 'yourpassword';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;

or --

$g_allow_signup    = ON;  //allows the users to sign up for a new account
$g_enable_email_notification = ON; //enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; // this is most important
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_username = 'youraccount@gmail.com'; //replace it with your gmail address
$g_smtp_password = '*********'; //replace it with your gmail password
$g_administrator_email = 'admin@example.com'; //this will be your administrator email address

sudo nano /var/www/html/mantisbt/config_defaults_inc.php
$g_mail_priority    = 3;
$g_phpMailer_method    = PHPMAILER_METHOD_SMTP;
$g_smtp_host    = 'smtp.gmail.com';
$g_smtp_username = 'my_accout';
$g_smtp_password = 'my_password';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;

sudo nano /var/www/html/mantisbt/config_inc.php.sample

sudo nano /var/www/html/mantisbt/core.php
 (is_null ($ mail-> getSmtp ())) (

    g_phpMailer_smtp $ = $ mail-> getSmtp ();

)

Third, in class config_inc.php located in mantis\ i made the following changes
$ g_administrator_email = 'myemail';
g_phpMailer_method = $ 2;
$ g_smtp_host = 'smtp.gmail.com: 465';
$ g_smtp_username = 'myusername';
$ g_smtp_password = 'mypassword';

https://www.mantisbt.org/bugs/view.php?id=11422