Title: Jonas Aeschlimann's Replies | WordPress.org

---

# Jonas Aeschlimann

  [  ](https://wordpress.org/support/users/ampluswp/)

 *   [Profile](https://wordpress.org/support/users/ampluswp/)
 *   [Topics Started](https://wordpress.org/support/users/ampluswp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ampluswp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ampluswp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ampluswp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ampluswp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ampluswp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/users/ampluswp/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ampluswp/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider] Microsoft 365: Unauthorized (422) when sending emails](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [2 months ago](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/#post-18842802)
 * 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](https://wordpress.org/support/users/ampluswp/).
    -  This reply was modified 2 months ago by [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider] Microsoft 365: Unauthorized (422) when sending emails](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [2 months ago](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/#post-18842779)
 * 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’] ?? ”;
 *     ```wp-block-code
       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);
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider] Microsoft 365: Unauthorized (422) when sending emails](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [2 months ago](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/#post-18842771)
 * This problem has obviously been around for a while ([https://wordpress.org/support/topic/wpml-error-code-422-message-unauthorized/](https://wordpress.org/support/topic/wpml-error-code-422-message-unauthorized/)).
   However, it would make sense to use the same callback for different languages…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider] Microsoft 365: Unauthorized (422) when sending emails](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [2 months ago](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/#post-18842768)
 * <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](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_callback](https://sbpv.ch/fr/wp-json/fluent-smtp/outlook_callback)
   [https://sbpv.ch/it/wp-json/fluent-smtp/outlook_callback](https://sbpv.ch/it/wp-json/fluent-smtp/outlook_callback)
   [https://sbpv.ch/en/wp-json/fluent-smtp/outlook_callback](https://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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider] Microsoft 365: Unauthorized (422) when sending emails](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [2 months ago](https://wordpress.org/support/topic/microsoft-365-unauthorized-422-when-sending-emails/#post-18841497)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SMTP Mailer] Test Mail refresh](https://wordpress.org/support/topic/test-mail-refresh/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/test-mail-refresh/#post-18689695)
 * ![](https://i0.wp.com/heizung-sanitaer-koelliken.ch/wp-content/uploads/2025/10/
   log.png?ssl=1)
 * only this
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SMTP Mailer] Test Mail refresh](https://wordpress.org/support/topic/test-mail-refresh/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/test-mail-refresh/#post-18687325)
 * All Plugins deactivated with WordPress Default Theme and no other wp_mail customize….
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP, and more] Annoying PopUp](https://wordpress.org/support/topic/annoying-popup-16/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [1 year ago](https://wordpress.org/support/topic/annoying-popup-16/#post-18431341)
 * Hey Patrick [@paddyam](https://wordpress.org/support/users/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](https://wordpress.org/support/users/ampluswp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP, and more] Annoying PopUp](https://wordpress.org/support/topic/annoying-popup-16/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/annoying-popup-16/#post-18365915)
 * and this message appears even f we dont have Outlook or Hotmail
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] Function _load_textdomain_just_in_time was called incorrectly](https://wordpress.org/support/topic/function-_load_textdomain_just_in_time-was-called-incorrectly-54/)
 *  [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/function-_load_textdomain_just_in_time-was-called-incorrectly-54/#post-18269989)
 * It’s still an error ;(
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Ads – Ad Manager & AdSense] Remove Widget in WP Dashboard](https://wordpress.org/support/topic/remove-widget-in-wp-dashboard/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-widget-in-wp-dashboard/#post-17970854)
 * Hey yes that fits many thanks, i was a bit surprised that you didn’t take responsibility
   for your own code 😀
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Ads – Ad Manager & AdSense] Remove Widget in WP Dashboard](https://wordpress.org/support/topic/remove-widget-in-wp-dashboard/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-widget-in-wp-dashboard/#post-17950068)
 * Can you please provide me with the code for functions.php so that it is completely
   disabled?
 * many thanks
 * Jonas
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Ads – Ad Manager & AdSense] Links von ADS in neuem Tab](https://wordpress.org/support/topic/links-von-ads-in-neuem-tab/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/links-von-ads-in-neuem-tab/#post-17949966)
 * perfekt danke
    -  This reply was modified 1 year, 8 months ago by [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Ads – Ad Manager & AdSense] AD’s do not rotate](https://wordpress.org/support/topic/ads-do-not-rotate/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/ads-do-not-rotate/#post-17949963)
 * Lieber 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Ads – Ad Manager & AdSense] Links von ADS in neuem Tab](https://wordpress.org/support/topic/links-von-ads-in-neuem-tab/)
 *  Thread Starter [Jonas Aeschlimann](https://wordpress.org/support/users/ampluswp/)
 * (@ampluswp)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/links-von-ads-in-neuem-tab/#post-17949563)
 * Hello
 * Where can I set clicks on my banner to open in a new tab/window?
 * Thank you very much
 * Jonas

Viewing 15 replies - 1 through 15 (of 28 total)

1 [2](https://wordpress.org/support/users/ampluswp/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ampluswp/replies/page/2/?output_format=md)