Jul 14 2023 12:23 PM
I have a Flow that sends an email to a specified email address when a Microsoft Form is filled up.
The problem is that the Flow works for me, but it doesn't work for the other people in my team
On the Send an email (V2), I am fetching the "From (Send as)" in the email for the flow Get user profile (V2) so it would be sent on their behalf. However, it just fails because of the error "You are not authorized to send mail on behalf of the specified sending account.".
Does it have something to do with the Connections of the Flow? FYI, this is a shared flow.
Jul 14 2023 01:03 PM
Hi @IMJMel,
The error message "You are not authorized to send mail on behalf of the specified sending account" suggests that there might be permission or configuration issues.
As far as I know, you won't be able to send emails from different email addresses with Power Automate without the permissions to do so for each mailbox. This is another article that came to the same conclusion: Using Flows Send as form submitter
What you can double check is following:
Check Permissions: Make sure that all team members who need to send emails through the Flow have the necessary permissions. Verify the settings for the sending account and ensure that the team members have the right authorization.
Review Connection Settings: Since this is a shared flow, it's important to check the connection settings. Ensure that the connection used in the Flow is configured with the correct account that has the authority to send emails on behalf of others. View the permissions of your outlook (Office 365) connector.
Update Flow Configuration: In the Send an email (V2) action, double-check that the "From (Send as)" field is correctly fetching the user profile for each team member. Confirm that the values are retrieved accurately and that the correct email address is used for each person.
Test Individual Flows: As a troubleshooting step, consider creating separate flows for each team member instead of using a shared flow. This can help identify any specific permission or configuration issues related to individual accounts.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
Jul 17 2023 05:56 AM
@IMJMel The ability to send on behalf of another user is set at the O365 User Admin level. You will need to get your admin to set it up - typically, and understandably, they will be reluctant to do this!
An more complicated alternative is to send the email as a Dynamics email from Power Automate.
Send Dynamics 365 Emails from Power Automate - CRM Software Blog | Dynamics 365
Note - worth checking if your scenario will allow you to use a traditional workflow - sending Dynamics email from these is a lot easier than from Power Automate.
Then you can use the User Settings Utility in XRM Toolbox to change a users settings to allow you to send Dynamics Email on their behalf (Dynamics email will need to be set up in the environment - if your organization has more than one environment, be very careful here as currently Dynamics email can only run in one environment in an O365 Tenant.