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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Send email on behalf o...
Power Apps
Answered

Send email on behalf other person in Power Apps (Office365Outlook.SendEmail)

(1) ShareShare
ReportReport
Posted on by 516 Moderator

Hello everyone. I need help with this tricky question.

 

I have a Power Apps application and I use the Office365Outlook connector to send an email (.SendEmail) when a button is clicked.

 

I need this email to be sent on behalf of a service account and not on behalf of the person clicking the button.

 

Things to keep in mind:

 

  • I need to do this in Power App. I am aware that it can be done seamlessly with Power Automate.
  • The application is used by the entire company so sharing the mailbox with everyone is not an option.

Is there any trick I can do, via connections or similar, to achieve my goal? Also, If what I want to do is not possible at all and the only option I have left is to use Power Automate, I'd appreciate a confirmation.

 

Thanks in advance

Categories:
I have the same question (0)
  • enriqueglopez Profile Picture
    516 Moderator on at

    Anyone? Thanks

  • sudipm Profile Picture
    Microsoft Employee on at

    Something like this should work for you

    Add the service account as a user to the Dynamics platform, enable the mailbox of this service account.
    From your power app instead of sending email directly, do this
    Create an email record in the Dynamics system, set the From field to the service account

    Set the subject, body etc to whatever is needed
    Save the email record, it should save as draft.
    Use the "SendEmail" action to send this mail either via a Power Automate/Workflow or directly from power app using this experimental feature
    https://powerapps.microsoft.com/en-us/blog/call-dataverse-actions-directly-in-power-fx-experimental-preview/


  • Static Profile Picture
    118 on at

    Hi @enriqueglopez 

    Actually this quite easy to implement.
    1. Create Service Account
    2. Assign License for this account and enable Send Email function on this Account
    3. Create flow with on behalf of Service account.
    4. Create connection with SA account. Add Appropriate action line "send an email". If you want to send email to external addresses make sure that in your organization this not restrict with DLP. If this restricted for " Send an email" action. My recommendation create SMTP connection and use SMTP action its more secure.
    5. If you want send email from Share mailbox address make sure that you added Service account as member.
    6. added flow to Canvas or MD app, or run based on trigger

     

    Hope this will help.

  • enriqueglopez Profile Picture
    516 Moderator on at

    Hello Static

     

    Thanks for your reply, but the problem is I dont want to use Power Automate for this. (If it's possible)

  • Verified answer
    enriqueglopez Profile Picture
    516 Moderator on at
    This is not possible through Power Apps. You need to create a flow and connect the service account.
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,978 Moderator on at
    Hi
     
    Actually this is completely doable. If the user who is clicking the button has send on behalf privileges for the Mailbox that the account owns, certainly you can set the From via the options { From: emailaccountorservice }
     
    I do it all the time

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard