Send Email from Gmail in a Power Apps Form
This example shows the basic pattern for sending a message from a Power Apps form through the Gmail connector. Use your own connector connection and do not hard-code credentials or confidential information in the app.
Gmail.SendEmailV2(
"[email protected]",
{
Subject: "IT Helpdesk Form - " & User().FullName,
Body: "Location: " & 'location-value'.Selected.Value & "<br/>" &
"Request: " & 'howcanhelp-value'.Selected.Value & "<br/>" &
"Details: " & 'moreinfo-value'.Text
}
)Key points: & joins text, <br/> creates a line break in HTML mail, and the control names must match the controls in your app. Test with a non-sensitive mailbox before publishing the form.