How To Send Email Using Power Apps

In this blog, we will discuss how to send an email on PowerApps. We will see how to send an Email in PowerApps on the submit button.

Step 1

Create a Canvas App with any layout.

How To Send Email Using Power Apps

Step 2

Rename the default screen name and add controls as shown in the image.

How To Send Email Using Power Apps

Step 3

Create another success screen for showing confirmation of sent email.

How To Send Email Using Power Apps

Step 4

Add Gmail connector.

How To Send Email Using Power Apps

Step 5

Provide gmail credentials for sign-in.

How To Send Email Using Power Apps

Step 6

Click on Submit button then select On select property and add the below formula on it.

Gmail.SendEmailV2(txtTo, {
    Subject: txtSubject,
    Body: richTextEditor,
    Importance: "Normal"
});
Navigate(SuccessScreen, ScreenTransition.None);

JavaScript

How To Send Email Using Power Apps

Step 7

Save the app to the cloud as shown below image.

How To Send Email Using Power Apps

Step 8

Now run the app pressing f5 and provide email id, subject, and body details.

How To Send Email Using Power Apps

Step 9

Click on submit button will be sent an email and navigate to a confirmation screen.

How To Send Email Using Power Apps

Step 10

Go to your gmail and check whether the email arrived or not. The below image shows the email sent successfully.

How To Send Email Using Power Apps

Share

Add Your Comments

Your email address will not be published. Required fields are marked *