An email screen In a canvas app that lets users send an email from their Office 365 Outlook account. Users can search for recipients in their organization and add external email addresses, too. You can add image-attachment support, change the user data that appears in the search gallery, and make other customizations.
Go to +New Screen -> Templates -> Email
You can also add other template-based screens that show different data from Office 365, such as a user’s calendar, people in an organization, and availability of the people users might want to invite to a meeting.
An Email screen Template includes To: We can add Email Addresses of the people To whom the Email needs to be send , Subject: The main subject of the email to clearly understand the purpose of the Email and Message of the Body: We can add the text which needs to be send to the recipient as shown in the figure
To add email addresses for email recipients outside your org, type out the full, valid email address, and select the ‘+’ icon that appears to the right of it
Once we create a screen it automatically connects with “Office365 Outlook” is a cloud-based service that is designed to help build reliable applications according to your business requirements and “Office365Users”
Email Screen Template by default includes The labels, Icons, Galleries and Text Inputs which divides the Email screen template into different sections .
Send Email Icon “iconMail” is by default provided with a function in the Onselect property of the icon, Where it uses the office365 connectors Send Email function by using which we are sending Emails to the Recipients
Send Email V2 Function :
sendEmail function is a deprecated action so we can replace it by using Send Email V2 function. The syntax of this function includes the actions like To, subject, Body which includes from, Cc, Bcc, Attachments, Replay To,Importance…
SendEmailV2 Syntax
- SendEmailV2(
- To,
- Subject,
- Body,
- {
- From:Text,
- Cc:Text,
- Bcc:Text,
- Attachments:Table,
- ReplyTo:Text,
- Importance:Text
- }
- )
When we preview the app it will Ask for To Addresses where we can add one or more Emails, maximum it will recommend for 15 Emails
Subject: where we have to indicate the purpose of the Email in a single line
Message: Where we can add the entire details of the mail in Simple Text Format
To send the Email After Entering the details we need to Tap the Send Email icon
The Email will be send to the Outlook where we can see it in the Inbox of the Outlook
Email will be headed by a Subject Displayed on the Top of the mail
Rich Text Email Body:
The Message Body of the Email is in a Simple text format we can also use Rich text format.
Insert a Rich Text Editor and rename it as “RTEBody”
In the control tree view, select RTEBody > … > Reorder > Send to back. This prevents the control from sitting in front of the PeopleBrowseGallery control.
Change the OnSelect property of the iconMail control to this formula:
Rich text Editor can be used to add different fonts ,colors and Links to the Mail.
after giving the details tap on the sendEmailicon
It will send an Email to the Outlook , when we click on the link it will be diverted to the Microsoft documentation.
Add Image To the Body of the Email
Insert Add picture
In the control tree view, select AddMediaWithImage > … > Reorder > Send to back. This prevents the control from sitting in front of the PeopleBrowseGallery control
Change the OnSelect property of the iconMail control to this formula:
User Image in the Email :
Change the OnSelect property of the iconMail control to this formula:
It will add the user image to the email
Signature or Sketches in the Email :
To add signatures to the mail, insert a “Pen input” control to the email
Change the OnSelect property of the iconMail control to this formula:
Add the email addresses and subject and signature to the email .