Forum Discussion
chanlerone
May 16, 2023Copper Contributor
Sending email with OAuth authentication to Office 365 using MgGraph
Hi all, I'm trying to send emails using MgGraph and Modern Authentication and somehow this fails. The sender receives an auto-respond from Exchange saying; Diagnostic information for admin...
Andres-Bohren
May 17, 2023Iron Contributor
Hi chanlerone
Here is an example on how to do it
https://blog.icewolf.ch/archive/2022/03/15/simple-example-of-sending-mail-via-microsoft-graph/
More Examples with Graph
More Examples with MgGraph
Regards
Andres
chanlerone
May 19, 2023Copper Contributor
Thanks everyone for helping out, but I just confirmed this to be a problem related to having a Developer license.
As soon as I try this on a production tenant with licenses it immediately works and mails are received by the intended recipient.
It seems Microsoft has some kind of protection to prevent misuse of trial and developer accounts.
A good thing, but not helpful if you want to test something conceptually before putting it in production.
As soon as I try this on a production tenant with licenses it immediately works and mails are received by the intended recipient.
It seems Microsoft has some kind of protection to prevent misuse of trial and developer accounts.
A good thing, but not helpful if you want to test something conceptually before putting it in production.