Page 1 of 1

Microsoft 365

Posted: 22 Oct 2022, 04:19
by shood
I am trying to get Mantis to work with my Microsoft 365 email. So far no luck from what I have found. Does anyone have a current config that actually works? Changes to 365 that is needed?

Re: Microsoft 365

Posted: 22 Oct 2022, 08:22
by cas
Do you mean the email reporting plugin or just the mail functionality from Mantis itself?

Re: Microsoft 365

Posted: 22 Oct 2022, 13:36
by shood
Right now, just the mail functionality itself

I have tried all this

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = '587';
$g_smtp_username = 'scott@domain';
$g_smtp_password = "******";
$g_return_path_email = 'scott@domain.com';
$g_administrator_email='scott@domain.com';
$g_webmaster_email=$g_administrator_email;
$g_from_email='scott@domain.com';

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = '25';
$g_smtp_username = 'scott@domain';
$g_smtp_password = "******";
$g_return_path_email = 'scott@domain.com';
$g_administrator_email='scott@domain.com';
$g_webmaster_email=$g_administrator_email;
$g_from_email='scott@domain.com';

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
#$g_smtp_connection_mode = 'tls';
$g_smtp_port = '25';
$g_smtp_username = 'scott@domain';
$g_smtp_password = "******";
$g_return_path_email = 'scott@domain.com';
$g_administrator_email='scott@domain.com';
$g_webmaster_email=$g_administrator_email;
$g_from_email='scott@domain.com';

and I have this in my dns records
v=spf1 ip4:xx.xx.xx.xx include:spf.protection.outlook.com -all


And it still tells me to check my mail settings when I try to send a test mail. And the page takes forever to respond back.

Re: Microsoft 365

Posted: 22 Oct 2022, 14:26
by cas
Check this post: viewtopic.php?t=26794

Re: Microsoft 365

Posted: 22 Oct 2022, 16:01
by shood
I have been through that post, one of the setups I did was just like the one the guy said worked. I went through Microsoft's page on how to set it up also. It fails right away.

Re: Microsoft 365

Posted: 23 Oct 2022, 07:43
by cas
Did you activate mail logging and if so what is shown in the log file?
If not, activate and check.