Hello @Giuseppe SCALZI - Thank you for posting on MS Q&A! It looks like Exchange Online has deprecated Basic Auth in favor of OAuth, see: https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
Assuming that you can use OAuth to create the connection for your Logic App workflow as desired, you'll also want to be mindful of a known SSO behavior which is explained in the following blog post: https://techcommunity.microsoft.com/t5/integrations-on-azure-blog/using-service-account-for-office-365-outlook-connector/ba-p/1978513