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
v-micsh-msft
Community Support
Community Support

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

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

Did you find a workaround?

Anonymous
Not applicable

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.

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

Hi @Anonymous, 

 

How did you manage to do this?

 

Sandro Clz.

diliberto91
Frequent Visitor

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,184)