Email Notification on V1.2.8

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Email Notification on V1.2.8

Post by Elyes »

Hello,
when I test sending email via test_email.php I got the following error:

Code: Select all

Testing Mail - PROBLEMS SENDING MAIL TO sample@webmail.com  Please check your php/mail server settings.
Below is my configuration (config_inc.php)

Code: Select all

//config_inc.php
//EMAIL NOTIFICATION
$g_allow_signup    = ON; 
$g_enable_email_notification = ON; 
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.gmail.com';
//$g_smtp_connection_mode = 'tls';
//$g_smtp_port = 587;
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
$g_smtp_username = 'sample@gmail.com'; 
$g_from_email= 'sample@gmail.com';
$g_smtp_password = 'sample';
$g_administrator_email = 'sample@gmail.com';

Code: Select all

MantisBT Version:1.2.8
php_version:5.3.9
Windows XP
Please advise.
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Email Notification on V1.2.8

Post by atrol »

Please use Search before posting and read the Manual
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Email Notification on V1.2.8

Post by Elyes »

Hello
Thanks for your reply.
I've already scanned this post but I've got the same error.
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Email Notification on V1.2.8

Post by Elyes »

Hello,
I'm still waiting for your help.
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Email Notification on V1.2.8

Post by atrol »

Seems that waiting is not the best method to find solutions ;-)

Did you really check all the information from http://www.mantisbt.org/forums/viewtopi ... =3&t=15398 ?
Just to be sure, so I don't have to ask questions which are covered by this post.
Please use Search before posting and read the Manual
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Email Notification on V1.2.8

Post by Elyes »

Hello,
I've solved my problem by adding the extension openssl_dll to my php.ini file.

Thanks.
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Email Notification on V1.2.8

Post by atrol »

Reading was better than waiting ;-)
Thanks for coming back and telling the solution.

BTW, do you use XAMPP?

I am asking, because they write it comes with mod_ssl, OpenSSL. This is true, but a) the extension is not enabled and b) it's not contained in php.ini, so you can't just remove the comment sign for the entry.
Please use Search before posting and read the Manual
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Email Notification on V1.2.8

Post by Elyes »

Hello,
I'm using EasyPHP 5.3.9.
The email notification is working fine with Gmail while it failes with Microsoft Exchange.
Giving that MS Exchange is not using SSL, do you think that I have to disable extension=php_openssl.dll
I've tried

Code: Select all

$g_smtp_connection_mode = '';
But in vain.
Any clues?
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Email Notification on V1.2.8

Post by atrol »

Elyes wrote: do you think that I have to disable extension=php_openssl.dll
No
Elyes wrote: Any clues?
I searched the forum for "exchange". Seems that you are not alone with this problem, but none of the posts I read provided an answer.
I have no knowledge of Exchange.
We use phpMailer to send mail via smtp. Maybe using their support channels can help.
http://sourceforge.net/projects/phpmailer
http://sourceforge.net/search/?group_id ... rch=Search
Please use Search before posting and read the Manual
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Email Notification on V1.2.8

Post by atrol »

Elyes, did you succed in using Exchange?
If not, this might help http://www.mantisbt.org/forums/viewtopi ... 294#p48399
It's German, but I hope that Exchange administrators will understand what user dirste wrote.
Please use Search before posting and read the Manual
Elyes
Posts: 38
Joined: 21 Feb 2012, 13:31

Re: Email Notification on V1.2.8

Post by Elyes »

Hello,
Unfortunatly, not yet.
We are still investigating internally.
I'll upadate you asap.
Post Reply