Hi everyone,
I can add a Microsoft 365 Email Account in Dynamics 365 Business Central but when trying to send the test email, I have a very generic error:
When digging a little bit more in the error Outbox, this is what I get:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""">www.w3.org/.../strict.dtd"> <HTML><HEAD><TITLE>Not Found</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Not Found</h2> <hr><p>HTTP Error 404. The requested resource is not found.</p> </BODY></HTML>
And when I click on "Investigate error":
"Email - Outlook API Client"(CodeUnit 4508).ProcessErrorMessageResponse line 4 - Email - Outlook REST API by Microsoft
"Email - Outlook API Client"(CodeUnit 4508).SendMailSingleRequest - Email - Outlook REST API by Microsoft
"Email - Outlook API Client"(CodeUnit 4508).SendEmail - Email - Outlook REST API by Microsoft
"Email - Outlook API Helper"(CodeUnit 4509).Send line 14 - Email - Outlook REST API by Microsoft
"Microsoft 365 Connector"(CodeUnit 4503).Send line 4 - Email - Microsoft 365 Connector by Microsoft
"Send Email"(CodeUnit 8890).OnRun(Trigger) line 5 - System Application by Microsoft
"Email Dispatcher"(CodeUnit 8888).OnRun(Trigger) line 29 - System Application by Microsoft
"Email Impl"(CodeUnit 8900).Send line 37 - System Application by Microsoft
"Email Impl"(CodeUnit 8900).Send line 4 - System Application by Microsoft
Email(CodeUnit 8901).Send line 2 - System Application by Microsoft
"Email Test Mail"(CodeUnit 8887).OnRun(Trigger) line 33 - System Application by Microsoft
The mailbox specified during the setup of the email account is a shared mailbox hosted in Outlook online I have created myself. I have setup the delegation rights and it does work from Outlook 365 (I can connect to the share mailbox and send email as the shared mailbox).
I'm out of idea to troubleshoot this issue
Any help would be appreciated. Thanks.