View Issue Details

IDProjectCategoryView StatusLast Update
0010961mantisbtinstallationpublic2011-08-05 02:30
Reportermantis-zede Assigned Toatrol  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
Platformpowerpc-macminiOSdebian linux 2.6.26-2OS Versionlenny
Product Version1.1.6 
Summary0010961: impossible to send mails from mantis
Description

Impossible to send mail from mantis.

The config looks like below.

<?php

$Id$

# Debian default configuration file for mantis.

# Attention: You should NOT remove the following line, if using
# dbconfig-common/debconf to configure mantis database, nor should you
# change the database configuration by hand.
include("config_db.php");

$g_hostname            = "$dbserver";
$g_db_username        = "$dbuser";
$g_db_password        = "$dbpass";
$g_database_name        = "$dbname";
$g_db_type            = "$dbtype";

$g_administrator_email      = 'user@gmail.com';  
$g_webmaster_email        = 'user@gmail.com';
$g_from_email        = 'user@gmail.com';
$g_return_path_email    = 'user@gmail.com';

# Smtp
$g_phpMailer_method = 2;
$g_smtp_host = 'smtp.gmail.com:465';
$g_smtp_connection_mode = 'ssl';
$g_smtp_username = 'user@gmail.com';
$g_smtp_password = 'mypassword';
$g_stop_on_errors = ON;
$g_email_receive_own = ON;

include("config_local.php");

?>

Steps To Reproduce

always

Additional Information

The config looks like below.

<?php

$Id$

# Debian default configuration file for mantis.

# Attention: You should NOT remove the following line, if using
# dbconfig-common/debconf to configure mantis database, nor should you
# change the database configuration by hand.
include("config_db.php");

$g_hostname            = "$dbserver";
$g_db_username        = "$dbuser";
$g_db_password        = "$dbpass";
$g_database_name        = "$dbname";
$g_db_type            = "$dbtype";

$g_administrator_email      = 'user@gmail.com';  
$g_webmaster_email        = 'user@gmail.com';
$g_from_email        = 'user@gmail.com';
$g_return_path_email    = 'user@gmail.com';

# Smtp
$g_phpMailer_method = 2;
$g_smtp_host = 'smtp.gmail.com:465';
$g_smtp_connection_mode = 'ssl';
$g_smtp_username = 'user@gmail.com';
$g_smtp_password = 'mypassword';
$g_stop_on_errors = ON;
$g_email_receive_own = ON;

include("config_local.php");

?>

Tagspatch

Activities

jety

jety

2009-11-21 12:18

reporter   ~0023780

I spent hours trying to debug why the mailer wasn't working. After a lot of debugging, I realized it was hanging and timing out on this bit of code: line 807 from /core/email_api.php

if ( !is_null( $mail->smtp ) ) {
$g_phpMailer_smtp = $mail->smtp;
}

I commented it out and everything has worked great since.

atrol

atrol

2010-10-25 16:09

developer   ~0027158

mantis-zede, this issue is not reproducible with current version of MantisBT.
Feel free to reopen the issue if there are still problems after upgrading.
I did not find any longer $g_phpMailer_smtp in source code of MantisBT 1.2.3