cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Approval flow fails to send emails - You are not authorized to send mail on behalf of the specified

I have a fairly complex Flow that uses modern approvals which fails when attempting to send confirmation emails with error "You are not authorized to send mail on behalf of the specified sending account. clientRequestId: cbb9644e-1cba-42d3-9e8a-e7e38bd7f3d2"

2017-08-03_14-26-50.png

The strange thing here is that I have added the Approver Email in the From (Send as) field 

 

2017-08-03_14-56-55.png

 

so I'm perplexed as to why this would be causing the Flow to fail, can't this revert to the default Flow Account as below:

 

2017-08-03_15-00-19.png

Thanks

Chet

 

 

7 REPLIES 7
Community Support Team
Community Support Team

Re: Approval flow fails to send emails - You are not authorized to send mail on behalf of the specif

Hi @Anonymous,

 

The issue here should be related with the Mail Account permission used for the Send Email Action.

Generally we would take use of Office 365 Outlook Connections and then work with the corresponding MailBox, which mostly is our own.

And if you want to switch the From field, it would need to configure settings under the Mail Account for Delegate Access.

It would need to give the Flow building Account permission of the corresponding mailBox to send Email On behalf of the MailBox owner.

 

Also there is an idea submitted on this:

Add the From field on the action “Send Approval email”

 

And a thread talking about the same issue:

Flows that send email

 

Check the response from staff kartikraop for the proper workaround:

"

The Outlook connector will be able to send emails only using those email accounts that your credentials have access to. You cannot use the connector to send a mail on behalf of some other user - for obvious security reasons. This behavior and so the error you get are by design.

 

If you don't want to use your own account for sending the "notification e-mails", you could consider using a service account to send out the emails.

"

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: Approval flow fails to send emails - You are not authorized to send mail on behalf of the specif

Thanks Michael, 

 

Unfortunately the workaround won't work for me because the approvers are mainly directors so I would prefere the email to come from them or a generic account.

 

I'[ll work something out in the meantime and avoid using the From field from now on

 

Thanks

Chet

JanSomers91
Level 8

Re: Approval flow fails to send emails - You are not authorized to send mail on behalf of the specif

Did you find a workaround?

Anonymous
Not applicable

Re: Approval flow fails to send emails - You are not authorized to send mail on behalf of the specif

Hi @JanSomers91, yes I've worked around this issue by creating a donotreply@-----.com mailbox in exchange and making the connection email address the owner of that mailbox, now all emails in the flow are sent using that address instead of the connection address.

mirzasa
Level: Powered On

Re: Approval flow fails to send emails - You are not authorized to send mail on behalf of the specif

I used "Send email" action rather than Office 365 Outlook. The email just comes from microsoft@powerapps.com.

Sandritto
Level: Powered On

Re: Approval flow fails to send emails - You are not authorized to send mail on behalf of the specif

Hi @Anonymous, 

 

How did you manage to do this?

 

Sandro Clz.

Highlighted
diliberto91
Level: Powered On

Re: Approval flow fails to send emails - You are not authorized to send mail on behalf of the specif

You have the ability to keep the account performing the connection to Outlook the same. This may be desired if you do not have extra Office 365 licenses lying around. 

 

From there, you can keep the "Send As" address that you would like (i.e. a Distribution List), and then just grant permission to the workflow account (delegating) to allow it to send emails.

 

See more: 

You are not authorized to send mail on behalf of the specified sending account

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 125 members 5,371 guests
Please welcome our newest community members: