No, the MS-side of things to create an app registration, set the permissions, generate the "app secret", and adjust permissions via a Powershell script to limit the scope of the permission is manual only. You really wouldn't want any of that stuff to be able to be automated due to the security implications.
I am in the same boat. My company uses Office365 and while we have been tying into SMTP via basic auth to an Office 365 account that had send-as rights, that is coming to an end in October by Microsoft.
mobdro
vidmate
Thank you Mr Needle for adding the procedure to the DNN Documentation :-) https://docs.dnncommunity.org/content/tutorials/server/smtp-servers/set-up-oauth-microsoft-365/index.html
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.