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...
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.
In config_inc.php, I've setup the Mail Function as follows (sensitive information redacted)
The Log Says...
Code: Select all
$g_phpMailer_method = PHPMAILER_METHOD_SMTP; $g_smtp_host = 'smtp.gmail.com'; $g_smtp_port = 465; $g_smtp_connection_mode = 'ssl'; $g_smtp_username = 'firstname.lastname@example.org'; $g_smtp_password = 'xxx'; $g_administrator_email = 'email@example.com'; $g_webmaster_email = 'firstname.lastname@example.org'; $g_from_email = 'email@example.com'; $g_return_path_email = 'firstname.lastname@example.org'; $g_from_name = 'Mantis Bug Tracker'; $g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT; $g_log_destination = 'file:J:\iis_ext\logs\mantisbt.log';
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 = email@example.com, 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 firstname.lastname@example.org
The emails which *were* received, I've marked in green above. The rest are all failed attempts on different functions.
I'm using version 2.21.1
Site is hosted on a Windows Server instance, IIS with PHP7