Page 1 of 1

Gmail works!

Posted: 29 Apr 2010, 20:28
by jomavaro
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

Re: Gmail works!

Posted: 31 May 2010, 18:36
by acalvod
Hello jomavaro,

I cannot make Mantis notifications work with gmail.
I just tried with your settings with my gmail account on config_inc without results.
Did you modify any other file? (PHP.ini, phpmailer,...)

Thanks a lot for your help!!

Re: Gmail works!

Posted: 17 Jun 2010, 17:14
by tetsunami
I tried this config and was ok

well you must set $g_enable_email_notification = ON;
by the way XD

see ya! :o

Re: Gmail works!

Posted: 18 Jun 2010, 06:30
by atrol
tetsunami wrote: well you must set $g_enable_email_notification = ON;
This is the deafult setting, you don't have to change anything for this

Re: Gmail works!

Posted: 06 Aug 2010, 06:51
by mzainal
Which file do i need to change this?

Re: Gmail works!

Posted: 06 Aug 2010, 06:57
by atrol
mzainal wrote:Which file do i need to change this?
config_inc.php

Re: Gmail works!

Posted: 06 Aug 2010, 07:24
by mzainal
Got this error on error.log

Code: Select all

[Fri Aug  6 15:20:00 2010] [error] PHP Notice:  Use of undefined constant PHPMAILER_METHOD_SMTP - assumed 'PHPMAILER_METHOD_SMTP' in /htdocs/mantis-1.0.7/config_inc.php on line 42

Re: Gmail works!

Posted: 08 Aug 2010, 15:08
by atrol
mzainal wrote:in /htdocs/mantis-1.0.7/config_inc.php
Seems that this was not available in older versions of MantisBT
You should update to a newer version.

You could also try to use the value 2 instead of PHPMAILER_METHOD_SMTP

Re: Gmail works!

Posted: 10 Aug 2010, 04:08
by prakash
goto : config_defaults_inc.php

Line : 483 (approx)

$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;


These are the 100% working settings for gmail

Prakash

Re: Gmail works!

Posted: 10 Aug 2010, 05:42
by atrol
Thank you for posting this information.

But you should never change config_defaults_inc.php because this file will be overwritten when updating.
You have to add the lines that you want to change to file config_inc.php

Re: Gmail works!

Posted: 10 Aug 2010, 09:19
by prakash
Edited : I'll try updating that file like you said

cheers.

Re: Gmail works!

Posted: 10 Aug 2010, 09:54
by prakash
@atrol. Sorry about my previous reply. I didn't read your post correctly. i forgot updating means upgrading to a new version.. anyways like you said ill try updating config_inc.php.

Thanks again

Re: Gmail works!

Posted: 10 Aug 2010, 10:39
by atrol
Yes, I meant updating to a newer version.
Even if you make a backup of config_defaults_inc.php before updating MantisBT you can get problems.
If a newer version of MantisBT introduces new configuration options in config_defaults_inc.php and you copy your backup over it, the new options are not set to an initial value.
This might lead to various issues.