emails not sent on registration

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
rhaziel
Posts: 6
Joined: 21 Dec 2011, 15:00

emails not sent on registration

Post by rhaziel »

Hello,

my new mantis (the most recent) does not send emails when new users sign up.
I got my configuration set up properly. the smtp has been checked with mozilla thunderbird - working.
The emails never get to the emails table in the DB.
What can be wrong?
atrol
Site Admin
Posts: 8272
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: emails not sent on registration

Post by atrol »

You can enable email tracing to see what happens
Temporary add the following lines to config_inc.php

Code: Select all

 $g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/tmp/mantisbt.log';
Please use Search before posting and read the Manual
rhaziel
Posts: 6
Joined: 21 Dec 2011, 15:00

Re: emails not sent on registration

Post by rhaziel »

Well unfortunatelly the only thing with this set i get is an error from php that my webhost has disabled logging for security reasons.
I did contact him to make sure that smtp is working and i managed to send/get mail from this smtp server with thunderbird.
But mantis aint still working. It does not put the emails into the DB. and i dont know why? How is it possible?
atrol
Site Admin
Posts: 8272
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: emails not sent on registration

Post by atrol »

Please use Search before posting and read the Manual
rhaziel
Posts: 6
Joined: 21 Dec 2011, 15:00

Re: emails not sent on registration

Post by rhaziel »

Yes i have tried gmail aswell.
The thing is as i stated before - it is not the mail account problem.
THe emails do not go to the DB hence they never actually even get sent.
How can i fix this?
atrol
Site Admin
Posts: 8272
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: emails not sent on registration

Post by atrol »

You should post your MantisBT configuration, especially the e-mail related setting.

Which version of MantisBT do you use?
Which version of PHP do you use?
Which database version do you use?
Did you change any source code of MantisBT?
Did you write any custum functions?
Did you install any plugin?
Please use Search before posting and read the Manual
rhaziel
Posts: 6
Joined: 21 Dec 2011, 15:00

Re: emails not sent on registration

Post by rhaziel »

Mantis version: mantisbt-1.2.8
PHP version: PHP 5.2
DB version: MySQL 5.5
No changes of the mantis code apart from the css file
no additional functions (though i would love to be able to pass phpBB session to mantis - so no need ot register separatelly to mantis)
plugins installed: Mantis Graphs 1.0 | MantisBT Formatting 1.0a

Anyone please help... my webhost configermed that the PHPMAILER_METHOD_SMTP should work fine


EDIT:

Configuration part:
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'xxx.pl';
$g_smtp_username = 'xxx@xxx.pl';
$g_smtp_password = 'xxx';
$g_smtp_connection_mode = '';
$g_smtp_port = 25;
$g_email_send_using_cronjob = OFF;


EDIT2:
now what i noticed is that once a new acc is created an email notifiaction for admin is automatically generated and pushed to DB. Moreover it gets sent actually to admin (the email is on the same domain as the script)
rhaziel
Posts: 6
Joined: 21 Dec 2011, 15:00

Re: emails not sent on registration

Post by rhaziel »

hello can anyone please assist as I still cannot figure this one out
atrol
Site Admin
Posts: 8272
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: emails not sent on registration

Post by atrol »

Did you check the server logfiles for errors and warnings?
Did you try using MantisBT's original CSS-Files?
Please use Search before posting and read the Manual
rhaziel
Posts: 6
Joined: 21 Dec 2011, 15:00

Re: emails not sent on registration

Post by rhaziel »

Yes i tried so many things.
and i dont have access to log files. but other software i have on server sends emails like charm - 100/h.
Really please help me
atrol
Site Admin
Posts: 8272
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: emails not sent on registration

Post by atrol »

You are not allowed to enable logging.
You are not allowed to have a look at your access and error logs.
Superior hosting provider ;-)
Do you pay for it?

You told me that you followed the steps provided at
http://www.mantisbt.org/forums/viewtopi ... =3&t=15398

What was the result of the attached script testmail.php ?
Please use Search before posting and read the Manual
SPEAKnSPAN
Posts: 2
Joined: 29 Nov 2009, 11:09
Location: France
Contact:

Re: emails not sent on registration

Post by SPEAKnSPAN »

Same symptoms, same problems.
Unable to re-install a clean version of Mantis 1.2.8 on my server.

I have a real problem to track my projects and QA without this tool I have ever used.

I made many checks: My official diagnosis MANTIS 1.2.8 is incompatible with my new versions of PHP and / or because the version of MySQL MantisBT-1.2.8-master-1.2.x-6049d83.zip did not this problem: I received email. (Except that it is impossible to continue to use this version. It is a development version where nothing was finalized (HTML / CSS.)

My config
Parallels Plesk Panel v10.4.4_build1013111102.18 os_CentOS 6 (PLESK 10.4.4-cos6.build1013111102.18)
Linux CentOS.6.38.2-xxxx-std-ipv6-64
Apache 2.2.15-15.el6.centos
PHP 5.3.3-3.el6_2.5
MySQL 5.1.52-1.el6_0.1

thanks
evcha
Posts: 1
Joined: 10 Oct 2013, 10:14

Re: emails not sent on registration

Post by evcha »

http://www.mantisbt.org/bugs/view.php?id=12099

1. Dans "\wamp\bin\apache\Apache2.4.4\bin\php.ini" decomenter "extension=php_openssl.dll"
2. Dans "\wamp\www\mantisbt-1.2.15\config_inc.php" mettre
$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;
Sharmin
Posts: 2
Joined: 03 Jan 2015, 04:22

Re: emails not sent on registration

Post by Sharmin »

Hi,
I am Sharmin Sultana From Bangladesh using mantis . I am new in this field and i have set up all the things of mantis using administrative guide but , having problem with sending email which is very important for using mantis.

I do some change in config_inc.php page....... My code is below
?php
$g_hostname = 'Sharmin';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = '';

$g_allow_signup = ON; //allows the users to sign up for a new account
$g_enable_email_notification = ON; //enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_username = 'example1@gmail.com'; //user gmail address
$g_smtp_password = '*******'; //user gmail password
$g_administrator_email = 'example@gmail.com'; //this is my administrator email address


?>

******what's the problem...please help me...its urgent
rasim
Posts: 2
Joined: 06 Nov 2015, 07:52

Re: emails not sent on registration

Post by rasim »

My configuration setting is below, please help to solve this email issue

$g_phpMailer_method = PHPMAILER_METHOD_MAIL; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'smtp.gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_username = '*************'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = '***********'; # used with PHPMAILER_METHOD_SMTP
$g_administrator_email = 'ar@intbittech.com';
$g_webmaster_email = 'ar@intbittech.com';
$g_from_email = 'noreply@intbittech.com'; # the "From: " field in emails
$g_return_path_email = 'ar@intbittech.com'; # the return address for bounced mail
$g_from_name = 'Intbit Tech - Mantis Bug Tracker';
$g_email_receive_own = ON;
# $g_email_send_using_cronjob = OFF;
$g_enable_email_notification = ON;
Post Reply