DEV Community

Wai Liu
Wai Liu

Posted on • Updated on

Sending an email out as another user in Power Apps

Business requirement

Users need to be able to send emails from inside Power Apps using another user's email.

Prequisite

  • Your Power Apps environment will need to have set up some integration with an email server. In this case, we're just going to use Exchange Online

Solution

1. Add this permission for a security role which will have the ability to send email as another user

Security Role

2. Allow each account that you want to be able to have emails sent on their behalf.

This can be done inside Personalisation Settings

Allow emails to be sent on behalf

How users send the email

They just simply select the account they want in the From tab.

How to send from

If either the user sending the email doesn't have a role with the permission or the account hasn't allowed other users to send on behalf of them, an error message will show up.

Error message

And that's it - it's pretty simple once you know how. However, a few things to consider when deciding whether to use this solution.

  • The emails that are sent are identical to if the original user sent it out themselves.
  • There doesn't seem to be any out of the box permissions to allow more finite permissions for only certain users to be able to send from certain mailboxes or mailboxes to only allow certain users to send from them. Basically, all users that can send as another user can send to all mailboxes that has allowed this.

Top comments (0)