WPML & Error code”: 422, “message”: “Unauthorized
-
Hello,
I encountered a problem and then I found a solution that could help other users. In the combination of WPML & Elementor Form & FluentSMTP and Outlook or Office 365 connection, sending emails from the web form only works on the original domain and language, if the other languages are in the directories. If you try to send a request via the web form in other languages, you will get an error:
"code": 422,
"message": "Unauthorized",
"errors": [
"Unauthorized"
The solution to the problem is to add paths for each language in the Microsoft Entra admin center:
Home > Enerprise application > All applications > FluentSMTP domain.com | Properties > App registrations > FluentSMTP domain.com
Under "Authentication" Web - Redirect URLs, you should add the other languages in addition to the basic domain in the main language. For example:
https://domain.com/wp-json/fluent-smtp/outlook_callback (main language - original record)
https://domain.com/it/wp-json/fluent-smtp/outlook_callback (Italian language)
https://domain.com/de/wp-json/fluent-smtp/outlook_callback (German language)
etc...for all languages used on the site.
I assume that the same problem occurs with all WP plugins for sending emails through forms that do not solve the path change for callback URLs themselves.
Best regards
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.