Problem with email notifications

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
potzuk
Posts: 1
Joined: 10 Jan 2023, 09:39

Problem with email notifications

Post by potzuk »

Hi everyone,

I'm attempting to configure Mantis to send email notifications via a Connector in our M365 tenant, this method works fine for our other similar systems so I'm confident that the issue is Mantis and not the M365 configuration.

I've configured the config_inc.php as per:

Code: Select all

$g_phpMailer_method	= PHPMAILER_METHOD_SMTP;
$g_smtp_host			= '[redacted].mail.protection.outlook.com';
$g_smtp_port			= 25;
$g_smtp_connection_mode = 'tls';
$g_smtp_username		= '';	
$g_smtp_password		= '';	
$g_administrator_email  = 'it.services@[redacted]';
$g_webmaster_email      = 'it.services@[redacted]';
$g_from_email           = 'it.services@[redacted]';	
$g_return_path_email    = 'it.services@[redacted]';	
$g_from_name			= 'MantisBT';
#$g_email_receive_own	= OFF;
#$g_email_send_using_cronjob = OFF;
$g_enable_email_notification = ON;

$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = 'file:/home/framewor/public_html/logs/email.log';
Whenever I trigger an email notification from the system, no email is received and nothing shows in the Exchange Trace logs. The email log file contains a few lines but nothing that results in any Google results unfortunately:

Code: Select all

2023-01-10 09:37 GMT MAIL email_api.php:992 email_bugnote_add() Note ~10058 added to issue #3295
2023-01-10 09:37 GMT RECIPIENT email_api.php:285 email_collect_recipients() Issue = #3295, add @U79 (reporter)
2023-01-10 09:37 GMT RECIPIENT email_api.php:295 email_collect_recipients() Issue = #3295, add @U79 (handler)
2023-01-10 09:37 GMT RECIPIENT email_api.php:342 email_collect_recipients() Issue = #3295, add @U79 (note author)
2023-01-10 09:37 GMT RECIPIENT email_api.php:429 email_collect_recipients() Issue = #3295, drop @U79 (own action)
Wondering if anyone could share a pointer or two?

Thanks in advance
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with email notifications

Post by atrol »

2023-01-10 09:37 GMT RECIPIENT email_api.php:429 email_collect_recipients() Issue = #3295, drop @U79 (own action)
You don't get the notification because it's your own activity.
This is the default setting.
If you don't like it, add the following line to config_inc.php

Code: Select all

$g_email_receive_own = ON;
See https://www.mantisbt.org/docs/master/en ... nfig.email
Please use Search before posting and read the Manual
Post Reply