cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nrvrvl
Helper I
Helper I

Mail Sent or Not Confirmation In PowerApps only

I am using Office365Outlook.SendEmailV2 connecter to send email onSelect property of button. 

Something like this : 

Previously : 

Office365Outlook.SendEmailV2( "abc@gmail.com" ,
"Test",
"This is body email.")

Now: 

nrvrvl_0-1622461765494.png

 

If(Office365Outlook.SendEmailV2( "abc@gmail.com" ,
"Test",
"This is body email."),
Notify("Mail sent",NotificationType.Success,6000) ,
Notify("Error mail not
sent",NotificationType.Error,6000))




I want to know if the mail is successfully sent or not. because sometimes I am not receiving emails when button is clicked. 


is this the correct way? I also know about the IfError() function which also help me out but need suggestions from the community.

I dont want to use any kind of flow is it still possible ?? 

Please suggest something. 

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @nrvrvl ,

That will not work - you could head down the IfError() path, but I simply send a bcc to myself.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Yes, but putting my self into bcc is not correct way. We are stealing confidential information that is not right. 
Are you sure IfError() suffice the requirement ?

WarrenBelz
Super User
Super User

@nrvrvl ,

I am not sure IfError would cover all the possible circumstances a mail would not be sent - you could put a Notify after the mail send or send a second mail to yourself directly after the first (just saying the first code ran).

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,204)