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 / Email not sent - using...
Power Apps
Unanswered

Email not sent - using Outlook 365 connector

(0) ShareShare
ReportReport
Posted on by 161

Hello, 

 

I'm using the below code on the On Select property of a send button to send an email to the Office 365 OutLook user(s) selected. Everything is working great except the emails only go to me, not the other OutLook user(s) selected. It doesn't give an error, the email to them just isn't sent. I know that's because my email address is in the code, but I don't know how to alter it correctly. How can I update the below code so that it sends the email to the OutLook users selected and not just to me? 

 

Office365Outlook.SendEmailV2(
"SamanthaLavoie@myorg.com",
"REMINDER: Monitoring Report(s) Due", //Subject of Email
"<h5>"
&
"Hello,<br><br>

My message..."
& "</h5> <br>
<table cellpadding ='4' border= '1pt solid white' style='color:white;background-color:#3E679F'
width='100%'><tr><th>CONTRACT NUMBER</th><th>CONTRACTOR NAME</th><th>DIVISION</th><th>RISK LEVEL</th><th>REPORTING PERIOD</th></tr>" & Concat(
GallerySearch_1.AllItems,
$"<tr><td style='text-align:center;
background-color:lightsteelblue'>{ThisRecord.Title}</td><td style='text-align:center;
background-color:lightsteelblue'>{ThisRecord.'CONTRACTOR NAME'}</td><td style='text-align:center;
background-color:lightsteelblue''>{ThisRecord.DIVISION.Value}</td><td style='text-align:center;
background-color:lightsteelblue''>{ThisRecord.'RISK LEVEL'.Value}</td><td style='text-align:center;
background-color:lightsteelblue''>{ThisRecord.'NEXT REPORT DUE DATE'.Value} </td></tr>"
)&"</table> <br>",
{
From: User().Email
}
);
Clear(MyPeople);
Navigate(EmailNotifications)

 

Thanks in advance to anyone who can help me out. 

Samantha

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @SamanthaLavoie ,

     

    How did you select the user in app?

    Assuming that there is a combo box /dropdown in app to select user email, I made a sample for you.

    vxiaochenmsft_0-1700529583812.png

     

    vxiaochenmsft_1-1700529600482.png

     

    Best Regards,

    Wearsky

  • SamanthaLavoie Profile Picture
    161 on at

    The email recipient is selected by searching for the user in the Office 365 network user list, selecting the user from the drop-down that appears, and then the selected user's name appears in the email recipient gallery. (I stole this function from the email template screen that Power Apps provides.) See the screenshot of my email address after it's selected below.

     

    SamanthaLavoie_0-1700591825586.png

    The email that is sent includes a table of filtered data from the main screen. The user filters gallery data and then sends an email that includes a table with the gallery data to the Office 365 user selected. The email message can't be edited by the user so there is a preview of what the message will look like provided on this screen. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard