Relationship Graph

Relationship Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0011422mantisbtemailpublic2011-08-05 02:41
Reportervubinhit Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version1.2.0rc2 
Summary0011422: Can't not send email by gmail smtp
Description

I try to configure mantis smtp by gmail, but I can't send email anymore.

Steps To Reproduce

modify some parameters in config_defaults_inc.php file:

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

TagsNo tags attached.

Relationships

related to 0009908 closedvboctor Support SMTP servers with ports other than 25 (e.g. gmail) 

Activities

rerbin

rerbin

2010-01-22 02:38

reporter   ~0024209

i met the same problem

andregpl

andregpl

2010-01-27 08:39

reporter   ~0024261

First, replacing classes class.phpmailer.php and class.smtp.php that are in mantis\core\phpmailer\ by these [url]http://phpmailer.worxware.com/index.php?pg=phpmailer[/url].

Then I made the following changes in class.phpmailer.php:

1 - I changed the following parameter:
public $SMTPSecure = 'ssl';

2 - I created the method:
getSmtp public function () (
return $ this-> smtp;
)

Second, in class email_api.php located in mantis\core\ i made the following changes

line 813

if (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';

andregpl

andregpl

2010-01-27 10:04

reporter   ~0024262

instead of this:

2 - I created the method:
getSmtp public function () (
return $ this-> smtp;
)

Second, in class email_api.php located in mantis\core\ i made the following changes

line 813

if (is_null ($ mail-> getSmtp ())) (

g_phpMailer_smtp $ = $ mail-> getSmtp ();

)

you could do this:

in line 309 change

private $smtp = NULL;

to

public $smtp = NULL;

is more simple.

yw84ever

yw84ever

2010-02-05 03:45

reporter   ~0024327

And I got around this by configuring postfix to mail through google's smtp servers. (ISP blocks port 25 and shut off the ISP's smtp servers, with a switch to Google Apps.)

vboctor

vboctor

2011-05-12 01:23

manager   ~0028773

I've just setup a Google Apps account. I setup the gmail account with ssl / port 465 and it didn't work. I changed to tls / 587 and it worked fine. Here is Google's documentation for reference:

http://mail.google.com/support/bin/answer.py?answer=13287

This worked fine on MantisBT v1.2.4.