Has anyone been able to get this to work? I've got ChatGPT to output what looked like decent instructions and have fllowed them but keep getting a "Error 400: redirect_uri_mismatch" error. I'll post the instructions below...
To configure OAuth for sending emails via a Google account on a DotNetNuke (DNN) 9 website, you'll need to perform the following steps, both on the DNN side and in the Google Cloud Console. This setup replaces traditional SMTP configurations, enhancing security.
Create OAuth Credentials:
Get OAuth Credentials:
For anyone having a similar problem, I was able to figure out the issue. I don't see it documented anywhere, but this is the redirect_uri you need to setup from your Google Cloud Authorized Redirect URIs field for your Credential. If for some reason it's different, you can check the web browser console network tab to see the redirect_uri field filled out after you tap the Authorize button in DNN.
https://www.[yoursite...eMail/Authorize.aspx
Posted By PeteyBlah on 10/3/2024 6:24 PM For anyone having a similar problem, I was able to figure out the issue. I don't see it documented anywhere, but this is the redirect_uri you need to setup from your Google Cloud Authorized Redirect URIs field for your Credential. If for some reason it's different, you can check the web browser console network tab to see the redirect_uri field filled out after you tap the Authorize button in DNN. https://www.[yoursite...eMail/Authorize.aspx
Ah, right, that's the same for Exchange. Thank you for posting the solution, very helpful for future users. :-)
Just to follow up, it appears it's still authenticating with the original SMTP email address I had.
The 'X-Google-Original-From' header in the email is showing the original email address.
Has anyone had that happen before, or know how to fix it? Or even debug it?
Posted By PeteyBlah on 10/9/2024 3:44 PM I changed a superuser Display name, and that seems to have changed the from email display name, is that really the place it's pulling that from? Why? I see in instructions in various places, that there used to be placed to change the from email name, but I don't see that anywhere in the settings anymore. Is it also pulling that email address from the super user email address? Is there some legacy setting enabled after updating from dnn7 that is causing this? Anyone have any ideas? Thanks.
The email used comes from the HostSettings Table and AFAIK there is not edit interface for that and some other settings related to the main Host in the Persona Bar:
I have those host settings saved in my host settings table.
My registration and other emails still list the (X-Google-Original-From) header as coming from my superuser email.
And the "from name" is set from that superuser as well, even though those host settings are set.
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.