Hello All, Test SMTP setting is not working Using OAuth as SMTP Authentication Type.
I have followed the step given in this link GitHub - davidjrh/dnn.azureadprovider: The DNN Azure Active Directory Provider is an Authentication provider for DNN Platform (formerly DotNetNuke) that uses Azure Active Directory OAuth2 authentication to authenticate users. · GitHub
I have applied the Clientid/Tenantid/Client secret and required permission for all like
i have followed DNN provider installation and configuration
after this when i go Setting-Servers-Server Setting and i have got this message "Your OAuth provider's configuration has been completed."
but when i click Test SMTP setting button then i am getting following error.
Please provide solution.
But the article you refer to at Gihhub is not meant for setting up outbound oAuth SMTP traffic. It is for Azure authentication. Pls, follow How to implement SMTP using OAuth with Microsoft 365 -- DNN Docs
I completed another DNN instance to use EOL and that worked fine. But there may be one issue that prevends you from sending email. If the admin of that site has an email address that is not the same as the 'from email address' that belongs to the account in cloud it mail fail.
Check this: <code>Get-OrganizationConfig | ft Name, SendFromAliasEnabled</code>. The output should show 'true' and if it does not do this <code>Set-OrganizationConfig -SendFromAliasEnabled $True</code>
<code>To forum admin: Why does this show so strange.</code>
The correct documentation can be found here: https://docs.dnncommunity...osoft-365/index.html
Posted By Mariette Knap (SU) on 4/7/2026 12:19 PM I completed another DNN instance to use EOL and that worked fine. But there may be one issue that prevends you from sending email. If the admin of that site has an email address that is not the same as the 'from email address' that belongs to the account in cloud it mail fail. Check this: <code>Get-OrganizationConfig | ft Name, SendFromAliasEnabled</code>. The output should show 'true' and if it does not do this <code>Set-OrganizationConfig -SendFromAliasEnabled $True</code> <code>To forum admin: Why does this show so strange.</code>
@Mariette Knap, did you use the quick reply or the full editor for the code block?
Quick reply to start with and after that tried to change in the full editor but that did not make a difference...
Same problem here... configuration is correct... but still get themessage
When we've done this in the past for clients, one of the gotchas that was hard to spot was the SMTP Auth setting being on/allowed. This is on the M365 side of things. Also, this can be set org-wide as well as per mailbox. Sorry I don't remember anything more specific, its been at least a year.
In addition, there are a LOT of details to get right. If you get it working and find that something that helped you was missing from the DNNDocs, please add a comment here so we can get the docs updated with experienced-based notes. Thanks!
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.