Page 1 of 1
Help Configuration
Posted: 07 May 2010, 07:25
by gagoul
Hello, i'm franch and i download and install Mantis for my enterprise.
But i don't know how configure this:
$g_phpMailer_method='2';
$g_smtp_host='192.168.0.253';
$g_administrator_email='
gael_XX@msn.com';
$g_webmaster_email=$g_administrator_email;
$g_from_email='
gael_XX@msn.com';
It is good? i don't know if it can work thanx for help
Re: Help Configuration
Posted: 07 May 2010, 08:09
by atrol
I never tried using MSN for this, but this could be starting point for you
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.email.msn.com';
$g_smtp_username = '
gael_XX@msn.com';
$g_smtp_password = 'mypassword';
Re: Help Configuration
Posted: 07 May 2010, 08:10
by gagoul
ok i change
$g_smtp_host='192.168.0.253';
to 0.11
but the Port is 6025 so in email_api.php, i add:
case 1: $mail->IsSendmail();
break;
case 2: $mail->IsSMTP();
$mail->Port = 6025; {
# SMTP collection is always kept alive
#
$mail->SMTPKeepAlive = true;
So can u help me?
Re: Help Configuration
Posted: 07 May 2010, 08:11
by gagoul
msn is for test i use @ekium.eu (my work) or @gmail.com
Re: Help Configuration
Posted: 07 May 2010, 11:55
by atrol
If possible, do never change MantisBT sourcecode like email_api.php
Your changes will be lost when updating.
Use instead configuration which will be kept.
To set the SMTP port add the following to your config_inc.php
$g_smtp_port = 6025;
If you want to try gmail have a look at
http://www.mantisbt.org/forums/viewtopi ... =3&t=10331
Re: Help Configuration
Posted: 07 May 2010, 13:12
by gagoul
i test :
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = 'admekium';
//Configuration des adresses email système
$g_administrator_email='
gael.pXXXX@ekium.eu';
$g_webmaster_email=$g_administrator_email;
$g_from_email='
gael.pXXXX@ekium.eu';
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_username = '
gael.PXXXX@gmail.com';
$g_smtp_password = 'YYYY';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 25; and i test 6025
$g_default_language='french';
$g_short_date_format='d-m-Y';
$g_normal_date_format='d-m-Y H:i';
$g_complete_date_format='d-m-Y H:i';
// Personnalisation de Mantis
$g_window_title='Rapport de bug';
?>
don't work
and i test
// Configuration du mode de mail
$g_phpMailer_method='2';
$g_smtp_host='192.168.0.11';
$g_smtp_port = 6025;
//Configuration des adresses email système
$g_administrator_email='
gael.paXXXX@ekium.eu';
$g_webmaster_email=$g_administrator_email;
$g_from_email='
gael.paXXX@ekium.eu';
don't work to
i'm desesperate, i have install mantis without probleme, and i don't understand why mail don't work, i make many test
edit: maybe i must wait little time before mail is send? For test, i change some bug state.
Re: Help Configuration
Posted: 30 May 2012, 15:28
by edfsoft
I have fight to configure the email in mantys for a long time.
Finally i resolved the problem
here u r what i write in config_inc.php
$g_enable_email_notification = ON;
$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 = '
youremail@gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = 'yourPassword'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
I tell u a tip: my problem was the $g_smtp_port value.
finally i found that 587 works. (I am sending from Argentina, i don`t know if is a diferent port for diferents countries)
i hope this help you
regards from Argentina