Hi,
I am new to PowerApps and trying to learn by the same apps on youtube and other resources.
Now I am following one of the videos on youtube (https://www.youtube.com/watch?v=F7OZVjjF2kg) and getting error in last at form level however I have tried my best but the error still exists.
In this video Gmail function is used to send an email however i just made changes it to Office365 otherwise tried to copy all the same but getting error as shown below.

Video time (28:31 to 28:54)
Below is the code on which I get the error.
UpdateContext({varSubmit:false});
Office365Outlook.SendEmailV2(Form1.LastSubmit.ContactPersonMail,
{
Subject: "Visitor at reception: ID# "& Form1.LastSubmit.ID,
Body: "<strong> Dear " & Form1.LastSubmit.ContactPersonName&"</Strong><br/><br/> There is a Visitor for you. <br/><br/><table width='100%' border='1'cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" & "<tr style='background-color:#efefef'><th style='text-align:left'>Visitor Name</th><th style='text-align:left'> Reason </th> <th style='text-align:left'> Visitor Address</th>
<tr>
<td>" & Form1.LastSubmit.VisitorName & "</td>
<td>" & Form1.LastSubmit.Reason & "</td>
<td>" & Form1.LastSubmit.Address & "</td>
</tr>
</tr></Table><br/>Please reply to this mail to convey your message to the visitor.
<br/><br/><strong>Thanks & Regards
<br/>Visitor Team
</strong>",
IsHtml: true
}
);NewForm(Form1);