question

NickDekker-7073 avatar image
0 Votes"
NickDekker-7073 asked MarileeTurscak-MSFT answered

When using current user e-mail functionality in Business Central On-Prem, error 'Access denied. Check Credentials and try again.' pops up.

  1. App registration in Azure Portal. https://docs.microsoft.com/en-us/dynamics365/business-central/admin-how-setup-email

  2. Given the right permission and have got the right client-id and client secret since the authentication has been verified.
    154708-image.png



  1. However, when sending out a e-mail by user an error pops up that the 'Access is denied. Check credentials and try again.'

Below the given permissions:
Dynamics 365 Business Central (1)
API.ReadWrite.All Application Full access to web services API

Microsoft Graph (5)
User.Read Delegated Sign in and read user profile
User.Read Delegated Sign in and read user profile.
Mail.ReadWrite Delegated Compose email messages.
Mail.Send Delegated Send email messages.
offline_access Delegated Maintain data access consent.

  1. Grant consent has been given to all permissions in which it was required.

Please help me out!

azure-ad-app-registration
image.png (41.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered

Have you added the user group memberships to ensure that all of the permissions are applied?

158374-image.png

For further troubleshooting, I would recommend reaching out on the Dynamics forum. Based on similar cases that I'm seeing in their forums, this can happen if your IP or email is blocked, and in that case it is recommended that you resolve this through a support case.

https://community.dynamics.com/business/f/dynamics-365-business-central-forum/270062/dynamics-365-online---550-5-7-501-access-denied-spam-abuse-detected---sending-email-from-workflow---server-side

https://answers.microsoft.com/en-us/msoffice/forum/all/can-not-send-email-from-business-central/467bc051-4a5b-483c-ae98-7c2cc290f9d0


image.png (15.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.