Email Notifications are sending inconsistently

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Posts: 1
Joined: 09 Aug 2019, 17:21

Email Notifications are sending inconsistently

Post by JBrinkZA »

Hi All,

I'm a newer user of MantisBT, and have read up as much documentation as I could to get my installation off the ground and functional to my needs.

One thing that I am having some difficulty with, is email notifications, and based on my research, it's not a common one, so I hope you folks may be of assistance...

What's happening..?
Email Notifications don't seem to work on most tasks like it should; however, it does definitely send out emails when registering new users and sending password reset requests. This would mean that the configurations are correct, and that something else seems to be the error.

My Configs:
In config_inc.php, I've setup the Mail Function as follows (sensitive information redacted)

Code: Select all

$g_phpMailer_method        = PHPMAILER_METHOD_SMTP;
$g_smtp_host               = '';
$g_smtp_port			= 465;
$g_smtp_connection_mode    = 'ssl';
$g_smtp_username           = '';
$g_smtp_password           = 'xxx';
$g_administrator_email     = '';
$g_webmaster_email         = '';
$g_from_email              = '';
$g_return_path_email       = '';
$g_from_name               = 'Mantis Bug Tracker';
$g_log_level               = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination         = 'file:J:\iis_ext\logs\mantisbt.log';
The Log Says...
2019-08-09 18:53 SAST MAIL email_api.php:980 email_bugnote_add() Note ~10 added to issue #1
2019-08-09 19:01 SAST MAIL email_api.php:949 email_bug_added() Issue #5 reported
2019-08-09 19:01 SAST RECIPIENT email_api.php:285 email_collect_recipients() Issue = #5, add @U2 (reporter)
2019-08-09 19:01 SAST RECIPIENT email_api.php:364 email_collect_recipients() Issue = #5, add @U2 (based on access level)
2019-08-09 19:01 SAST RECIPIENT email_api.php:432 email_collect_recipients() Issue = #5, drop @U2 (own action)

2019-08-09 19:03 SAST MAIL email_api.php:538 email_signup() Signup Email =, Hash = xxx, User = @U3
2019-08-09 19:03 SAST MAIL email_api.php:1410 email_send() ERROR: Message could not be sent - SMTP Error: Could not authenticate.
2019-08-09 19:03 SAST MAIL email_api.php:1239 email_send_all() Server not responding for 5 seconds, aborting

2019-08-09 19:03 SAST MAIL email_api.php:577 email_send_confirm_hash_url() Password reset for user @U3 sent to

The emails which *were* received, I've marked in green above. The rest are all failed attempts on different functions.

Additional Information:
I'm using version 2.21.1
Site is hosted on a Windows Server instance, IIS with PHP7
Post Reply