cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Perez
Helper V
Helper V

HTML text appear as mail as HTML

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:

Perez_1-1621322184049.png

 

this is how it look like in the mail:

Perez_0-1621322167556.png

 

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

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"
    }
)

 

 

View solution in original post

2 REPLIES 2
timl
Super User
Super User

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 @timl 

THATS WORKED, THANKS A LOT!!!

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,016)