cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mr-dang
Community Champion
Community Champion

Send Email requirements

I've been unsuccessful in sending email since they were just "logic flows."

 

I need to know what I'm doing wrong. I want to know how others are successful.

 

Here are my steps:

  1. Create a flow > Create from blank
  2. When a control is seleted > Office 365 - Send email
  3. To: Ask in Power Apps
  4. Subject: Ask in Power Apps
  5. Body: Ask in Power Apps

 

In Power Apps,

  1. Create three Input TextBoxes: TextInput1, TextInput2, TextInput3
  2. Create a Button with OnSelect property:
    flow.Run(TextInput1.Text, TextInput2.Text, TextInput3.Text)

 

When I test it out, I receive a Successful entry and a Running entry in the flow's log. The Running entry becomes Failure.

 

What is everyone doing to get this working?

Are you using Office 365, Outlook.com, Mail, etc.?

What level of Enterprise servicing are you using? E3? E5?

 

I've been in communication with PG, but I want to see if someone on these forums has an answer.

Microsoft Employee
@8bitclassroom
1 ACCEPTED SOLUTION

Accepted Solutions

We may need to improve our documentation here.

 

The From/Sender can be changed in certain cases where the user has the necessary permission in Office 365 mail settings.  Quoting the Outlook API doc: https://msdn.microsoft.com/en-us/office/office365/api/complex-types-for-mail-contacts-calendar#RESTA...

 

Setting the From and Sender properties

When a message is being composed, in most cases, the From and Sender properties represent the same signed-in user, unless either is updated as described in the following scenarios:

  • The From property can be changed if the Exchange administrator has assigned SendAs rights of the mailbox to some other users. The administrator can do this by selecting Mailbox Permissions of the mailbox owner in the Azure Management Portal, or by using the Exchange Admin Center or aWindows PowerShell Add-ADPermission cmdlet. Then, you can programmatically set the Fromproperty to one of these users who have SendAs rights for that mailbox.

  • The Sender property can be changed if the mailbox owner has delegated one or more users to be able to send messages from that mailbox. The mailbox owner can delegate in Outlook. When a delegate sends a message on behalf of the mailbox owner, the Sender property is set to the delegate’s account, and the From property remains as the mailbox owner. Programmatically, you can set the Sender property to a user who has got delegate right for that mailbox.

 

Let me know if you need help here.

View solution in original post

7 REPLIES 7
kkurni
Employee
Employee

Hi Mr-Dang,

 

I just create a query log for Powerapps team to answer your question.

#20317861

 

I will follow up with you once, I get the answer.

 

Thanks

Hi Mr-Dang,

 

our team just tried this out with the version of PowerApps in the store in our prod environment and did not run into any issues.

 

Did you set the value of the first TextInput box to a valid email address?

Without this, you will getting a failure in the log for my flow, but if we put my own email as the destination address, I both receive the email and see a success in the log history.

 

If you still have an issue, please send us more detail about the error that you receive, Screenshot, and flow id.

 

Thanks

 

KK

 

 

mr-dang
Community Champion
Community Champion

Hi,

I read on another thread that recipients of your emails from O365 might have to be in your contacts list. 

I have not tested this out yet. I will follow up on this.

 

In the mean time, the good news is that "Mail" works fine for me. It just can't customize the sender name and return email address.

Microsoft Employee
@8bitclassroom
mr-dang
Community Champion
Community Champion

Are there any intentions to improve the "Mail" flow to allow you to change the sender name and address?

Microsoft Employee
@8bitclassroom

Hi Mr-dang,

 

I created a flow “when a control is selected, send email with Office 365”.  Of course, before I created the flow to send email with Office 365, I needed to create a connection with Office 365 outlook and which will become the default sender. In the flow, “To”, “Subject”, “Body” were all set to “Ask in PowerApps”. Then I created an App, added there Textinput boxes and one button. The button’s Onselect property was set to the same with you. When the button was clicked, an email was sent to the mailbox which I filled in the first TextInput box. It worked well.

 

Then I modified the flow. In the flow, I filled the “From” and “CC” box with two email address which were different from the default sender. However, it didn’t work. Then I changed the email address of the “From” box to the default sender, it worked.

 

So, it seems that currently we may not be able to change the sender name and address of the “Send Mail” flow. And now, flow is being developed and improved, you could also vote your idea to the “Flow Ideas”, here is the link:
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Mabel & Mr Dang for showing us the step and figure out the issue.

 

This limitation is on the Office 365 connector. if we can change the sender email, it could lead to potential security concern.

"e.g imagine if everyone can send email using your email address as a sender"

 

Feel free to vote your idea to "flow ideas" as sugested by Mabel.

 

Thanks

 

We may need to improve our documentation here.

 

The From/Sender can be changed in certain cases where the user has the necessary permission in Office 365 mail settings.  Quoting the Outlook API doc: https://msdn.microsoft.com/en-us/office/office365/api/complex-types-for-mail-contacts-calendar#RESTA...

 

Setting the From and Sender properties

When a message is being composed, in most cases, the From and Sender properties represent the same signed-in user, unless either is updated as described in the following scenarios:

  • The From property can be changed if the Exchange administrator has assigned SendAs rights of the mailbox to some other users. The administrator can do this by selecting Mailbox Permissions of the mailbox owner in the Azure Management Portal, or by using the Exchange Admin Center or aWindows PowerShell Add-ADPermission cmdlet. Then, you can programmatically set the Fromproperty to one of these users who have SendAs rights for that mailbox.

  • The Sender property can be changed if the mailbox owner has delegated one or more users to be able to send messages from that mailbox. The mailbox owner can delegate in Outlook. When a delegate sends a message on behalf of the mailbox owner, the Sender property is set to the delegate’s account, and the From property remains as the mailbox owner. Programmatically, you can set the Sender property to a user who has got delegate right for that mailbox.

 

Let me know if you need help here.

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 (3,368)