Getting the following error while using the send mail O365 activity, how to resolve this issue?
Hi, @robot94809
Check that your Azure app registration has Mail.Send permission with admin consent, and verify the Tenant ID, Client ID, and Secret are correct Also, make sure your network/firewall allows access to https://graph.microsoft.com from your bot machine.
If the error still persists, please share a screenshot of the detailed error panel and your Office 365 Scope configuration properties.
The generalException occurs when your O365 Scope isn’t configured correctly. Check if you are passing all the mandatory properties with correct values.
Hi @robot94809
Can you please show the full error description from top when you scroll up in that error details.
Also,
-
if you can show us the properties you have configured for your send email activity.
-
plus, the azure app permissions
-
confirm which with type you are using to connect to O365 scope?
Hello,
This Microsoft.Graph.ServiceException (generalException) almost always indicates a permissions issue.
Perhaps this is the problem:
- Check Azure Permissions: Ensure the
Mail.Sendpermission is correctly added to your Azure App Registration and has been Admin Consented.
If permissions are correct:
- Check Mail Properties: Verify the recipient (
To) address is valid and that the authenticated user has the necessary rights for the mailbox being used.
I’m able to send emails successfully when I use the Get Asset activity and pass the retrieved values directly into the Office 365 Scope. However, when I attempt to fetch these values from the Config file, I encounter an error
Hi @robot94809
In that case, can you please check if the details that you have provided in config/assets is same as the one you are providing manually?
Looks like a mismatch there, hence the error
Also if you are able to confirm that you have created app id and secret as credential asset? Or a text asset?
And when you are providing it directly, are you providing the secret as plain string or secure string?
It means the values are not being passed correctly. Log each value of App Id, Tenant, secret etc. and compare against Get Asset values.
There should be some difference. Try debugging.
@ashokkarale
Thanks you, I’m able to resolve the issue
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

