Error while setting up Outlook email account

Hi @poojavadher.

It seems that SMTP is disabled in your M365 tenant.
Check this or ask your tenant admin:

It could be done via Powershell too.

Or check this for general M365 <> Frappe insight …

Hope this helps.