Page 1 of 1

Email just not working with mantis

Posted: 25 Apr 2014, 15:47
by sriram.n
Hi All,

I had upgraded mantis 1.2.10 to 1.2.15 after which i noticed that emails not working. I had taken the complete mysql dump and restored onto a new mantis server. I have not copied any app side codes or config etc...

I noticed that mantis is not sending emails for any updates.

So all the email are cluttered into the mantis_email_table I have cleared some 4000 emails out of this table.

I had ensured that valid options are marked tick on account preferences and the email notifications in the GUI.

MantisBT Version 1.2.15
Schema Version 183
Mysql Distrib 5.5.32
PHP 5.4.19

Note : I am able to send email from the server manually running the mail -s command so its not MTA related or network issues. I have valid ports open in the security group.

Re: Email just not working with mantis

Posted: 25 Apr 2014, 16:58
by atrol
I recommend to upgrade to 1.2.17 as a first step.
We replaced the underlying mail library in 1.2.16, thus it makes not sense to have a look for problems in 1.2.15
http://www.mantisbt.org/bugs/view.php?id=15958

Re: Email just not working with mantis

Posted: 09 May 2014, 08:49
by sriram.n
Hi,

Thanks for the response, I have installed latest version of mantis 1.2.17 but still i noticed that emails are not being sent for the signup newuser account.

Please let me know if this is something to do with phpmailer configuration

Regards
Sriram Nandakumar

Re: Email just not working with mantis

Posted: 10 May 2014, 08:09
by atrol
Before update to 1.2.17
sriram.n wrote:I noticed that mantis is not sending emails for any updates.
After update
sriram.n wrote:i noticed that emails are not being sent for the signup newuser account.
Does it mean, that emails for updates are working now?

Re: Email just not working with mantis

Posted: 13 May 2014, 04:38
by sriram.n
Thanks for the response.

No atrol emails are not working even for the updates, for you information I had launched mantis instance in the amazon cloud. EC2

Re: Email just not working with mantis

Posted: 13 May 2014, 05:26
by atrol
Did you check your web server and mail server logs for errors and warnings?
Of course you should read this post with lot of valuable information http://www.mantisbt.org/forums/viewtopi ... =3&t=15398

You should also post your MantisBT mail configuration.

Re: Email just not working with mantis

Posted: 13 May 2014, 09:17
by sriram.n
Hey Atrol,

Below is the config_inc.php after I added smtp and other parameters mails started going out but unfortunately mail started going to all in our email server. Those who did not even create a ticket in mantis started receiving emails about ticket update and other signup notifications.

How can i avoid this may be use gmail will help ?

May be because I used my SMTP email address which is my email domain admin it fetched all the other email address and posted emails ? not sure

Now i am bothered to enter any email account in the smtp settings ?

any help will be appreciated

Before

<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bitnami_mantis';
$g_db_username = 'xxxxx';
$g_db_password = 'xxxxx';
$g_enable_email_notification = ON;
?>

---------------------------------------------------------------------------
After

<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bitnami_mantis';
$g_db_username = 'xxxxx';
$g_db_password = 'xxxxxx';
$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_username = 'youraccount@gmail.com';
$g_smtp_password = '*********';
$g_administrator_email = 'youradmin@whatever.com';
?>

Re: Email just not working with mantis

Posted: 13 May 2014, 20:42
by atrol
You didn't respond to my question about mail logs.
Maybe this one is also your problem http://www.mantisbt.org/forums/viewtopi ... =3&t=22177

Re: Email just not working with mantis

Posted: 15 May 2014, 13:41
by sriram.n
Hi,

emails are going out now after i had changed the PHPMAILER_METHOD_SENDMAIL to sendmail instead of smtp.

But I am having problems with the email notification settings i am not sure who is getting notified don't know what is the default settings.