Help Configuration

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
gagoul
Posts: 5
Joined: 07 May 2010, 07:06

Help Configuration

Post 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
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Help Configuration

Post 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';
Please use Search before posting and read the Manual
gagoul
Posts: 5
Joined: 07 May 2010, 07:06

Re: Help Configuration

Post 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?
gagoul
Posts: 5
Joined: 07 May 2010, 07:06

Re: Help Configuration

Post by gagoul »

msn is for test i use @ekium.eu (my work) or @gmail.com
atrol
Site Admin
Posts: 8575
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Help Configuration

Post 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
Please use Search before posting and read the Manual
gagoul
Posts: 5
Joined: 07 May 2010, 07:06

Re: Help Configuration

Post 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.
edfsoft

Re: Help Configuration

Post 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
Post Reply