Hi arab hawamdeh,
Welcome to the Microsoft Community.
I understand that you mentioned an error related to imap-mail.outlook.com.
Due to the introduction of modern authentication, outlook.com does not support connecting IMAP/POP and SMTP in Outlook. So please check the following:
If you are using the Outlook app for iOS, due to modern authentication, Outlook/Hotmail no longer supports connecting IMAP/POP and SMTP.
If you are using Apple Mail to configure Outlook/Hotmail, we generally recommend selecting outlook.com for configuration.
If you wish to configure using the IMAP protocol, you need to confirm with Apple Mail support whether they support modern authentication for configuring IMAP.
Best Regards,
Jimmy Wang |Microsoft Community Support Specialist
I did this, with Apple Mail Outlook works but Hotmail still doesn't, and I can't send attachments now. Apple Mail shows All Inboxes... Outlook shows email, Hotmail still does not work and cannot see any subfolder