cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JohnWeb
Advocate I
Advocate I

Sending email as From (Send as) issue

Hi,

 

I have created an MS Flow that is fired through PowerApps, the flow sends email to a recepient (this is a field in the form). Here's the email in the flow. The connection and email action is using the connection run by service account that is in the From (Send As). The service account is licensed and configured with Mailbox and enabled Send As. However flow is having this error when sending email. Any idea?

 

Here's the error:

You don’t have permissions to send emails on behalf of the specified sending account. Contact the account owner to check shared mailbox permissions and gain access.

 

EmailError.PNG

2 ACCEPTED SOLUTIONS

Accepted Solutions
Pstork1
Most Valuable Professional
Most Valuable Professional

When you initiate a Flow from inside PowerApps the Flow runs in the context of the user running PowerApps.  To use the From field in the email the person running the Flow must have SendAs authority for the mailbox listed in the From field.  That means anyone who runs the PowerApp has to have SendAs permission to the Service Account's mailbox.  I assume they don't and that is why you are getting the error.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

As another work around I created a list that stores the item that was added/updated from PowerApps list then created a Flow to send the email and that seems to been working fine.

View solution in original post

25 REPLIES 25
Pstork1
Most Valuable Professional
Most Valuable Professional

When you initiate a Flow from inside PowerApps the Flow runs in the context of the user running PowerApps.  To use the From field in the email the person running the Flow must have SendAs authority for the mailbox listed in the From field.  That means anyone who runs the PowerApp has to have SendAs permission to the Service Account's mailbox.  I assume they don't and that is why you are getting the error.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

@Pstork1  thanks for the insight. As work around I created a new flow that sends email and have it called by the original flow.

Pstork1
Most Valuable Professional
Most Valuable Professional

Since that second Flow runs in the context of the Maker (hopfully the service account) you will be able to send with minimal permissions.  The only issue tends to be that calling a second Flow via HTTP is a premium function so licensing could get expensive unless you are on Dynamics licensing already.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I thought about that premium license (the powerapps is company wide use by all users) does that mean every user would require premium license? Or is just service account?
Pstork1
Most Valuable Professional
Most Valuable Professional

Since its the first Flow, being run in the context of the user who pushed the button, that is making the HTTP call to invoke the second Flow each user would be required to have a Premium license.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

As another work around I created a list that stores the item that was added/updated from PowerApps list then created a Flow to send the email and that seems to been working fine.

@Pstork1 I'm having the same issue, the send as and send on behalf permission had been assigned to the email account used for the flow, but am still getting forbidden

Pstork1
Most Valuable Professional
Most Valuable Professional

1) What Trigger is the flow using?  If its a manual trigger or a selected item trigger, then the flow is running under the account of the person who starts it, not the maker.  In that case everyone who runs the flow would need that permission.

2) Is the mailbox being used as the From account a regular mailbox?  It won't work with a shared mailbox.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @Pstork1,

you said:

>2) Is the mailbox being used as the From account a regular mailbox?  It won't work with a shared mailbox.

In fact it works when I populate the "From (Send as)" field with a shared mailbox.

 

________________________________________________________

Welcome to my web site.

Hi JohnWeb, Im also facing a similar issue, I need an automate flow to trigger an email from a common email box to a larger group of audience, since the email address "From (Send as)" in power automate requires "Send As" or "Send on behalf of" permission for that mailbox and I'm not sure whether its is possible to share permission to all audience at one go.. 

Could you please help me to understand how did you resolved it?

ikarthik_0-1643006594112.png

 

Anonymous
Not applicable

May I ask what is the format?  I am also having issues with this, but I'm unsure if I'm just typing in the wrong format.  I used "send as" (email address here)....
Thanks in advance

Pstork1
Most Valuable Professional
Most Valuable Professional

There is no specific format.  You just type in the email address you want to send the email from.  But the person running the flow needs to have "Send As" permission to that mailbox or it won't work.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I am having the same issue where my teammates cannot send the email. It works perfectly for me, but they get an error message that they do not have permission to send email. I do not have admin permission so I cannot create a distribution list. I created the form to allow my teammates to be able to celebrate with each other's students after completing a certain task. Is there any other workaround? 

Pstork1
Most Valuable Professional
Most Valuable Professional

The only workaround is to not fill in the From field and let it default to the maker of the flow.  All the emails will come from that account (yours).  But unless you can get an admin to give everyone "Send As" permission to your mailbox that is your only option.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

In the From field, I have a Dynamic Content that will use the responder's email. 

Pstork1
Most Valuable Professional
Most Valuable Professional

If you are using a manual trigger that might work, but if you are using an automated trigger then the flow runs in the security context of the account that was used to create the flow.  In that case that account must have "Send as" permission for any mailbox used in the From field.  There is no way to change that behavior.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

If the flow is triggered by PowerAutomate, what steps are needed to have SendAs authority for the mailbox listed in the From field?

VictorIvanidze
Community Champion
Community Champion

Pstork1
Most Valuable Professional
Most Valuable Professional

If the flow is triggered using an automated trigger then the flow will run in the security context of the maker of the flow.  That person needs to be given Send As permission to the mailbox you want to put in the From.  Since its probably a number of mailboxes this becomes an issue.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (4,933)