SEND EMAIL FROM POWERAPPS WITHOUT POWER AUTOMATE
Sending an email is the official means of communication in organizations. Some of these emails are repetitive tasks, for example, notification to supervisors when an action is completed. This fits into the category of tasks that should be automated.
The article explains how to send email notifications all within PowerApps as against the popular road map of using power automate.
Table Of Contents:
Connect to office 365 outlook connector
Add a button
Send a simple mail
Send a mail to multiple recipients
Send mail with importance, carbon copy and blind carbon copy
Send a mail with an attachment
Send a mail with a hyperlink and HTML body
Connect to office 365 outlook connector
Open Power Apps Studio, navigate to the data tab on the left navigation menu and add the office 365 Outlook Connector.
Add button to trigger mail
Insert a button to serve as a trigger to send the email
Send a simple mail
Write this code on the OnSelect property of the button to send a simple mail
Send a mail to multiple recipients
Write this code on the OnSelect property of the button to send a mail to multiple recipients. Simply separate each mail with a semicolon.
Send a mail with importance, carbon copy and blind carbon copy
Write this code on the OnSelect property of the button to send a mail with a carbon copy (Cc), blind carbon copy (Bcc) and importance.
Note: Importance has three categories: high, normal and low
Send a mail with an attachment
Write this code on the OnSelect property of the button to send a mail with an attachment. The attachment expects a table. We need to provide the name and contentbyte.
Send a mail with a hyperlink and HTML body
Write this code on the OnSelect property of the button to send a mail with a hyperlink in the HTML body.