Hi,
i have an app with an HTMLText box that i want to send in a mail.in the app designer the HTML is working and looks as expected, but when it is sent as part of the mail it showas the HTML text.
formula: Office365Outlook.SendEmail("eyalpe@amdocs.com", TextEmailSubject1.Text,HTMLStatus.HtmlText, {Importance:"Normal"});
this is how it looks in the designer:
this is how it look like in the mail:
HTML code:
"<html xmlns:v=""urn:schemas-microsoft-com:vml"" xmlns:o=""urn:schemas-microsoft-com:office:office"" xmlns:w=""urn:schemas-microsoft-com:office:word"" xmlns:m=""http://schemas.microsoft.com/office/2004/12/omml"" xmlns=""http://www.w3.org/TR/REC-html40""><head><meta http-equiv=Content-Type content=""text/html; charset=us-ascii""><meta name=Generator content=""Microsoft Word 15 (filtered medium)"">
<p><span style='color: rgb(0, 0, 0); font-family: ""Times New Roman"";vertical-align: top; font-size: 25px; '>See Below <b>"& MyRegion &"</b> region status. <br>week: <b>"& WeekValVP&", </b><b>"&lblDateRange.Text & "</b></span> </p>
<table align=""left"" border=""1"" cellpadding=""1"" cellspacing=""1"" style=""width:1100px;"">
<tbody>
<tr>
<td height:""50"" style=""width: 20%;background-color: rgb(124, 112, 107);""><strong><span style=""font-size: 22px;color: rgb(255, 255, 255);"">Cluster</span></strong></td>
<td style=""width: 20%; background-color: rgb(65, 168, 95);""><strong><span style=""font-size: 22px;color: rgb(255, 255, 255);"">Account</span></strong></td>
<td style=""width: 20%; background-color: rgb(184, 49, 47);""><strong><span style=""font-size: 22px;color: rgb(255, 255, 255);"">Status</span></strong></td>
<td style=""width: 20%; background-color: rgb(85, 57, 130);""><strong><span style=""font-size: 22px;color: rgb(255, 255, 255);"">Status Description</span></strong></td>
</tr>"&
Concat(colFinalStatus,"<tr>
<td style=""height:10px; width: 20.0000%;"";""><span style=""font-size: 18px;"">"&ClusterText&"</span><br></td>
<td style=""height:10px; width: 20.0000%;""><span style=""font-size: 18px;"">"&AccountText&"</span><br></td>
<td width=20% style= 'background:" & Switch(Status.Value, "Good", "#00B050", "Moderate", "yellow", "Bad", "red") & "'><span style=""font-size: 18px;"">
<p class=MsoNormal>" & Status.Value & "<o:p></o:p></p></td>
<td style=""height:10px; width: 40.0000%;""><span style=""font-size: 18px;"">"&Status_x0020_Description&"</span><br></td>
</tr>")&"
</tbody>
</table>
</html>"
thanks,
Eyal
Solved! Go to Solution.
Hi @Perez
I would try using SendEmailV2, which is the latest version and will default sending messages in HTML format.
The formula you would use would look like this:
Office365Outlook.SendEmailV2(
"eyalpe@amdocs.com",
TextEmailSubject1.Text,
HTMLStatus.HtmlText,
{
Importance: "Normal"
}
)
Hi @Perez
I would try using SendEmailV2, which is the latest version and will default sending messages in HTML format.
The formula you would use would look like this:
Office365Outlook.SendEmailV2(
"eyalpe@amdocs.com",
TextEmailSubject1.Text,
HTMLStatus.HtmlText,
{
Importance: "Normal"
}
)
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
199 | |
72 | |
50 | |
41 | |
30 |
User | Count |
---|---|
253 | |
113 | |
95 | |
91 | |
76 |