Sending, receiving, and organizing email in Outlook.com
Hi, I'm Diane and I'm happy to help you today.
What app are you using to send with? Does it support oAuth2? If yes, that would be better.
Is this an outlook.com account or Microsoft 365 Work or School account? Legacy support needs to be enabled on the exchange server if it's a business account. Personal accounts should be able to use smtp.office365.com (unless things changed recently.) https://techcommunity.microsoft.com/t5/exchange-team-blog/new-opt-in-endpoint-available-for-smtp-auth-clients-still/ba-p/2659652?WT.mc_id=M365-MVP-6934
Let me know how it goes, I'm here to help you further if needed.
-- Diane