web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sending email on behal...
Power Automate
Unanswered

Sending email on behalf of shared mailbox from Power Apps?

(1) ShareShare
ReportReport
Posted on by 664

I want to trigger a Flow from Power Apps on select of a button that sends emails. Regardless of the user who performed the on select action, I want to send the email from a shared account using the Send an email (V2) action.

The flow is owned by a service account. The shared account is in the From (Send as) line. When I test within the Flow, it works fine. When I test within Power Apps as a user who is not the service account, the Flow fails (You are not authorized to send mail on behalf of the specified sending account).

The connection for Send an email is using the service account Office 365 Outlook connection. I thought that as long as the connection performing the Send Email action has Send as/send on behalf of permission, the email could send from the shared account. I do not want to give all users using the app send on behalf of permission from the shared account, only for app purposes. Am I wrong on how these permissions work?

 

EDIT: it seems that the main issue is the fact that the flow is triggered from Power Apps. I can use send on behalf of as expected when the flow is triggered from something like When an item is added to a list, regardless of who performs the action of adding the item. The update of sending from this shared account is  new request and there are about 30 places in my app where emails are sent on a button click so I don't really want to change the trigger at this point. Does anyone know if it's possible to force the send action to be run by the owner of the Flow so send on behalf of works rather than the person performing the action?

Categories:
I have the same question (1)
  • Verified answer
    edguerre Profile Picture
    Microsoft Employee on at

    @Cooper01 

     

    Unfortunately I don't think that is possible. First, as you know, the user running the app would always have to have access to the shared account that they are sending emails on behalf of - this is mandatory.

    About user X running the flow using the connection from user Y, that would be multiplexing and that has been removed for a long time. Otherwise, it would be possible to have N users running one app and using premium connections, while only having one account! So I'm afraid all users need to have access to the shared account..

     

    I hope this explains things.

  • Cooper01 Profile Picture
    664 on at

    Thanks for the response and explanation @edguerre. I changed my Flow trigger so instead of the button OnSelect action triggering the Flow directly, it adds a recipient, subject, and body as separate fields on a SharePoint list. The Flow triggers now on When an item is added to the list and passes those three values into the respective Send an email action properties. Annoying to redo it all on the Power Apps side but at least I'll know for next time!

  • edguerre Profile Picture
    Microsoft Employee on at

    Hey @Cooper01 , I'm glad I was able to share some useful info. If it helped you, please mark it as resolved so this thread can help others.

    Have a great one!

  • Diggerr Profile Picture
    64 on at

    You should add new shared mailbox from admin https://admin.microsoft.com/#/homepage center here

    Diggerr_0-1682410564832.png

    Diggerr_1-1682410625844.png


    you should create NEW EMAIL, as already creted mailbox will not works!!!


    then you can use Send an email from shared mailbox (v2)

    Diggerr_2-1682410710543.png

     

    And now current user will get email from shared mailbox address (not from themselves), but you should set permission to each

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard