Microsoft 365

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
shood
Posts: 3
Joined: 22 Oct 2022, 04:17

Microsoft 365

Post 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?
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Microsoft 365

Post by cas »

Do you mean the email reporting plugin or just the mail functionality from Mantis itself?
shood
Posts: 3
Joined: 22 Oct 2022, 04:17

Re: Microsoft 365

Post 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.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Microsoft 365

Post by cas »

Check this post: viewtopic.php?t=26794
shood
Posts: 3
Joined: 22 Oct 2022, 04:17

Re: Microsoft 365

Post 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.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Microsoft 365

Post by cas »

Did you activate mail logging and if so what is shown in the log file?
If not, activate and check.
Post Reply