Sending emails using OAuth authorization in XbK?

2025/03/13 1:55 PM

Hi everyone,

Is there a way to use OAuth authorization for SMTP in XbK?

From what I see in the documentation, the only out-of-the-box options for sending emails are basic authentication and SendGrid integration. Do I need to implement a custom solution for this? That would feel like a step backward, considering K13 has supported it since 13.0.80 hotfix version.
Has anyone already implemented something like this? I’d really appreciate any guidance on how to approach it or any pointers in the right direction.


Environment

Answers

2025/03/17 3:40 PM

Yes, this feature is not included in Xperience by Kentico today.

Xperience by Kentico is not a 1-for-1 replacement for Kentico Xperience 13. If you need this feature added natively to the product you can request it on our public product roadmap. It helps us if you include the details of the business problem it would solve for you.

If you need this feature today, you can use something like ILSpy for VS Code to decompile our libraries and look at our default implementation.

Then, you can replace the included IEmailService implementation with your own. You can also use a library like Scrutor to decorate our interfaces using ASP.NET Core features (instead of our dependency injection APIs).

To answer this question, you have to login first.