DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

TEST SMTP Setting is not working Using OAuth as SMTP Authentication Type

 7 Replies
 0 Subscribed to this topic
 37 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 1
New Around Here
New Member
New Member
You are a new member!
New Poster
New Poster
Congrats on posting!

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.

Advanced Member
Posts: 178
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

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

Advanced Member
Posts: 178
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

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>

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

The correct documentation can be found here: https://docs.dnncommunity...osoft-365/index.html

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
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?

 

 

Advanced Member
Posts: 178
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!

Quick reply to start with and after that tried to change in the full editor but that did not make a difference...

Advanced Member
Posts: 243
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
2 Engaged Reader
Engaged Reader
You are an engaged reader!

Same problem here... configuration is correct... but still get themessage

Growing Member
Posts: 61
Growing Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

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:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved