Jonas Aeschlimann
Forum Replies Created
-
Thank you for your reply!
We will set it up that way.
Question: Would it not be technically cleaner to configure a main mail callback URL in fluent or to set whether the URL from the main language is always used. Or do you not see it that way?
- This reply was modified 2 months ago by Jonas Aeschlimann.
- This reply was modified 2 months ago by Jonas Aeschlimann.
and as a workaround:
do you think this would work? i did not try…
/* FluentSMTP Callback immer auf sprachneutrale REST URL umleiten */
add_action(‘init’, function() {
$uri = $_SERVER[‘REQUEST_URI’] ?? ”;if ( strpos($uri, '/fr/wp-json/fluent-smtp/outlook_callback') !== false || strpos($uri, '/de/wp-json/fluent-smtp/outlook_callback') !== false || strpos($uri, '/it/wp-json/fluent-smtp/outlook_callback') !== false ) { wp_safe_redirect(home_url('/wp-json/fluent-smtp/outlook_callback'), 302); exit; }}, 1);
This problem has obviously been around for a while (https://wordpress.org/support/topic/wpml-error-code-422-message-unauthorized/). However, it would make sense to use the same callback for different languages…
<span style=”font-size: inherit;”>We were able to identify the exact cause of the problem.</span>
The issue is related to WPML and how FluentSMTP generates the Outlook OAuth callback URL.
On multilingual sites using WPML, FluentSMTP generates the callback URL using the currently active language. This means the REST endpoint is translated and includes the language prefix.
Instead of always using the correct callback URL
https://sbpv.ch/wp-json/fluent-smtp/outlook_callback
FluentSMTP generates language specific versions such as:
https://sbpv.ch/fr/wp-json/fluent-smtp/outlook_callbackhttps://sbpv.ch/it/wp-json/fluent-smtp/outlook_callbackhttps://sbpv.ch/en/wp-json/fluent-smtp/outlook_callback
However, Microsoft Azure only allows the exact redirect URL that is registered in the application. Since only the non translated version was registered, Microsoft rejected the request with an “Unauthorized” error.
Additional observation that might help debugging:
We noticed a consistent pattern regarding the failure.
If we trigger either:
- a FluentSMTP test email, or
- a normal German (DE) email
then the French (FR) RSVP emails from Event Tickets start working again and are delivered successfully.
However, after approximately 8–12 hours, the FR emails start failing again with the same error:
Unauthorized (422)Forum: Plugins
In reply to: [SMTP Mailer] Test Mail refresh
only this
Forum: Plugins
In reply to: [SMTP Mailer] Test Mail refreshAll Plugins deactivated with WordPress Default Theme and no other wp_mail customize….
Hey Patrick @paddyam
Sorry for the late reply. In my case, the customer did have Office365. I was 100% sure that was not the case. So sorry for my wrong post.
Many thanks
Jonas
- This reply was modified 1 year ago by Jonas Aeschlimann.
and this message appears even f we dont have Outlook or Hotmail
It’s still an error ;(
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Remove Widget in WP DashboardHey yes that fits many thanks, i was a bit surprised that you didn’t take responsibility for your own code 😀
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Remove Widget in WP DashboardCan you please provide me with the code for functions.php so that it is completely disabled?
many thanks
Jonas
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Links von ADS in neuem Tabperfekt danke
- This reply was modified 1 year, 8 months ago by Jonas Aeschlimann.
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] AD’s do not rotateLieber Henning
Vielen Dank für deine Nachricht. Bei mir rotiert es nun auch einwandfrei. Irgendwie brauchte die Gruppe ein paar Minuten bis es aktiv war. Komisch aber jetzt geht es.
Für weitere Fragen würde ich dann den PRO Support nutzen Danke. 😉
Viele Grüsse
Jonas
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Links von ADS in neuem TabHello
Where can I set clicks on my banner to open in a new tab/window?
Thank you very much
Jonas