In a way, Office365 itself is a third-party mass-mailing service ![]()
Since Microsoft doesn’t really offer public SMTP service as part of those subscriptions (AFAICT), what we did in our case is set up MX records etc. for a subdomain and use that with (yes, yet another) 3rd-party SMTP service for outbound mail from Discourse. Email are also handled by this 3rd-party and notify Discourse via API/webhook.
You may have to have your O365 admin whitelist the new subdomain if you take this approach, so it doesn’t get caught in aggressive spam filters.