How to Launch Email PowerApps from a Button!
In this article we will demonstrate to you how to launch an email within the client application such as Outlook or Mail directly from a PowerApps button.
In this article we will demonstrate to you how to launch an email within the client application such as Outlook or Mail directly from a PowerApps button.
The below is the Canvas PowerApps formula that you can copy and paste into the OnSelect of the PowerApps button:
Launch(“mailto:[email protected]”, {subject: “This is my email subject”, cc: “[email protected]”, bcc:”[email protected]”, body: “This is my email body”})
You can customise specifc properties within the formula such as:
mailto:
This is who the email is going to be sent to and you may wish to hardcode this value.
Subject:
This is the subject line of the email that is being sent out. This is often a hardcoded value to make sure it is clear to the people receiving the email where it has been sent from. For example “new feedback form” that is being submitted.
Cc:
This is a secondary email address you might wish to input into the email.
Bcc:
This is another email address that you can add into the email that will not appear for other people on the email chain.
Body:
This is the main body of the email and should contain the message you wish to send. It is very easy to update this to contain values that are contained within the Canvas PowerApp. Just remember you need to combine and text and inputs from you PowerApp with a & symbol.
I hope you found this article useful, if you are interested in getting some assistance with SharePoint Online or PowerApps, please feel free to contact me with any questions using our contact us form.
You might also be interested to read What is the Best Database for your Microsoft PowerApps in 2022 (valto.co.uk)
Dougie Wood
Solutions Architect