Hello. Maybe you know, I created a Portal in Power Apps. I need to send invitations to my contacts, so I need configure the mail.

I tried to connect the local server (Microsoft Exchange Online), so I did the 4 points from answer https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Error-When-Sending-Email-From-App/m-p/652173#M6790 . But status of my mailbox - "Failed" with errors:

I didn't find what's the point, so then I tried to connect gmail server, using instruction https://www.arbelatech.com/insights/blog/how-to-set-up-dynamics-365-and-gmail-integration-yes-you-can.html , but there's same thing with different errors:

Is anybody knows what's the reason of these errors? What to do?