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 III
Super User III

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 III
Super User III

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

HI @timl 

THATS WORKED, THANKS A LOT!!!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,103)