Gmail works!
Moderators: Developer, Contributor
Gmail works!
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
$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!
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!!
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!
I tried this config and was ok
well you must set $g_enable_email_notification = ON;
by the way XD
see ya!
well you must set $g_enable_email_notification = ON;
by the way XD
see ya!
Re: Gmail works!
Which file do i need to change this?
Re: Gmail works!
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!
Seems that this was not available in older versions of MantisBTmzainal wrote:in /htdocs/mantis-1.0.7/config_inc.php
You should update to a newer version.
You could also try to use the value 2 instead of PHPMAILER_METHOD_SMTP
Re: Gmail works!
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
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!
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
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!
Edited : I'll try updating that file like you said
cheers.
cheers.
Last edited by prakash on 10 Aug 2010, 10:36, edited 1 time in total.
Re: Gmail works!
@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
Thanks again
Re: Gmail works!
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.
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.