View Issue Details

IDProjectCategoryView StatusLast Update
0012099mantisbtemailpublic2011-08-05 02:15
Reporteristvanb Assigned Tojreese  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version1.2.1 
Summary0012099: Can not send mail thru smtp.gmail.com
Description

I know there are topics dealing with this issue however none of them solved my problem yet.

I tried to configure the config_inc.php (see below) but no success. I have tried port 586 and 465 (even port 25) and tried to use tls and ssl as well since it is not clear for me which one is correct.

Please let me know what is the problem with the script below. I'd love to use Mantis at our company enviroment, but it MUST be able to send email before we move forward!

Thanks a lot!

<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = '';

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_connection_mode = 'ssl';
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_port = 465;
$g_smtp_username = 'myemail@gmail.com';
$g_smtp_password = 'mypassword';
$g_administrator_email = 'administrator@example.com';
$g_webmaster_email = 'webmaster@example.com';
$g_from_name = 'Mantis Bug Tracker';
$g_from_email = 'myfriend@yahoo.com';
$g_return_path_email = 'admin@example.com';
$g_enable_email_notification = ON;
?>

Additional Information

Using:
Mantis 1.2.1
WAMP server
WinXP

I have triple-checked my username and password. When the Mantis tries to send an email (like reseting PW, or new user registration) there is some internet trafic generated (the internet connection icon in the tray turns on)! After 3-4 seconds it says the email is successfully sent, but its not.

TagsNo tags attached.

Activities

istvanb

istvanb

2010-06-20 12:04

reporter   ~0025922

I have added the following line to my config_inc.php:

$g_email_send_using_cronjob = ON;

Personally I dont have a clue what is cronjob, but in another bugreport I saw this as a recommendation. I have tried the new config with ssl and tls, 465 and 586. Now its definitely gives me a faster response but still no mail :)

istvanb

istvanb

2010-06-20 12:05

reporter   ~0025923

and when I mean 568 I mean 587, it was a typo

istvanb

istvanb

2010-06-20 19:03

reporter   ~0025934

Ok! I have tried a ride with XAMPP server. On that server the script above works fine. I still dont know what is the problem with the WAMP, but if you have the same issue then just try XAMPP.

install XAMPP to C:\
copy the mantis folder to the htdocs folder
in browser type: http://localhost/mantis (orwhatever is your foldername)

I think we can close this issue!

pirunporn

pirunporn

2010-06-24 03:19

reporter   ~0025973

Are you uncomment extension=php_openssl.dll at php.ini in WAMP server?

jreese

jreese

2010-08-05 10:32

reporter   ~0026225

Closed by request of reporter.