Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Test email error when adding Microsoft 365 Email Account

Posted on by 5

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:

CaptureBC.PNG

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.

Categories:
  • Suggested answer
    MahGah Profile Picture
    MahGah 15,419 on at
    RE: Test email error when adding Microsoft 365 Email Account

    Hi

    Can you please post your setup here? Is it similar to below?

    pastedimage1641070617316v1.png

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 Moderator on at
    RE: Test email error when adding Microsoft 365 Email Account

    Have you tried to set it up using SMTP against your on prem Exchange server?

  • VladT Profile Picture
    VladT 5 on at
    RE: Test email error when adding Microsoft 365 Email Account

    Update:

    My mailbox was on premise in a Hybrid Exchange 2016/O365 Configuration.

    When I migrate my mailbox to O365, it does work. However I need this to be functionning for On premise Exchange 2016 users too.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans