Skip to content

Commit abd2028

Browse files
authored
Merge pull request #7823 from MicrosoftDocs/lucciz01-improve-error-while-sending-the-email-message
AB#3015: Reorganize/move/improve articles - error-while-sending-the-email-message
2 parents a6554eb + 9eb394f commit abd2028

1 file changed

Lines changed: 24 additions & 22 deletions

File tree

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
title: Error while sending the email message
3-
description: Provides a solution to an error that occurs when you test and enable a mailbox.
2+
title: An unknown error occurred while sending the email message
3+
description: Provides a solution to an error that occurs when you test and enable a mailbox in Microsoft Dynamics 365.
44
ms.reviewer:
5-
ms.topic: troubleshooting
6-
ms.date: 11/19/2024
5+
ms.date: 12/30/2024
76
ms.custom: sap:Email and Exchange Synchronization
87
---
9-
# An unknown error occurred while sending the email message error appears when testing and enabling a mailbox in Microsoft Dynamics 365
8+
# "An unknown error occurred while sending the email message" when testing a mailbox in Dynamics 365
109

1110
This article provides a solution to an error that occurs when you try to test and enable a mailbox in Microsoft Dynamics 365.
1211

@@ -15,37 +14,40 @@ _Original KB number:_   4092733
1514

1615
## Symptoms
1716

18-
When you attempt to test and enable a mailbox in Microsoft Dynamics 365, you receive the following error:
17+
When you try to [test and enable a mailbox](/power-platform/admin/connect-exchange-online#test-the-configuration-of-mailboxes) in Microsoft Dynamics 365, you receive the following error:
1918

20-
> "An unknown error occurred while sending the email message "Your mailbox is now connected to Dynamics 365". Mailbox \<Mailbox Name> didn't synchronize. The owner of the associated email server profile \<Profile Name> has been notified."
19+
> An unknown error occurred while sending the email message "Your mailbox is now connected to Dynamics 365". Mailbox \<Mailbox Name> didn't synchronize. The owner of the associated email server profile \<Profile Name> has been notified.
2120
22-
If you select the **Details** section, you may also see more details such as the following text:
21+
If you select the **Details** section, you might find the following details:
2322

24-
> "Error : System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was:
25-
at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
26-
at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result)
27-
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)"
23+
> Error : System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was:
24+
> at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
25+
> at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result)
26+
> at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
2827
2928
## Cause
3029

31-
This error can occur if the Outgoing Port value within the Advanced section of the email server profile isn't correct.
30+
This error can occur if the **Outgoing Port** value in the **Advanced** section of the email server profile isn't correct.
3231

3332
## Resolution
3433

3534
To fix this issue, follow these steps:
3635

37-
1. Navigate to **Settings**, **Email Configuration**, and then select **Email Server Profiles**.
38-
2. Open the Email Server Profile that is used by the mailbox meeting this error.
36+
1. Sign in to your Dynamics 365 organization with a user account that has the "System Administrator" role.
37+
1. Navigate to **Settings** > **Email Configuration**, and then select **Email Server Profiles**.
38+
39+
1. Open the email server profile that's used by the mailbox receiving this error.
3940

4041
> [!NOTE]
41-
> You can also select the name of the Email Server Profile within the error message. It appears as a hyperlink which will open the correct Email Server Profile record.
42+
> You can also select the name of the email server profile in the error message. It appears as a hyperlink that will open the correct email server profile record.
4243
43-
3. Select **Advanced**.
44-
4. Correct the **Outgoing Port** value and then select **Save**.
44+
1. Select **Advanced**.
45+
1. Correct the **Outgoing Port** value and then select **Save**.
4546

4647
> [!NOTE]
47-
> Refer to the documentation from your email provider for the correct ports to use when connecting to the SMTP service. For [Gmail](https://support.google.com/mail/answer/7104828) the port is 587.
48+
> Refer to the documentation from your email provider for the correct ports when connecting to the SMTP service. For example, for [Gmail](https://support.google.com/mail/answer/7104828), use port 587 for TLS/STARTTLS connections.
49+
50+
1. Select **Mailboxes**, and then select the mailbox that received the error.
51+
1. Select the **Test & Enable Mailboxes** button.
4852

49-
5. Select **Mailboxes** and then select the mailbox that received the error.
50-
6. Select the **Test & Enable Mailboxes** button.
51-
7. After the tests complete, open the mailbox record and view the **Alerts** section if the results don't appear as Success.
53+
1. After the test is complete, open the mailbox record and view the **Alerts** section if the results don't appear as **Success**.

0 commit comments

Comments
 (0)