cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dchiu
Frequent Visitor

HTML text widget formatted different when sent as email

I am using an HTML Text widget to format how my email should look like. This gathers details from a gallery & collection, into the formatting that I've created. I tried changing background color of cells, font size, border colors, etc. (see image attachment html)

 

html Screenshot 2021-11-26 120729.png

 

 

"<font size='6px'><table width='100%' border='1' cellpadding='5' style='border:1px solid white; border-collapse:collapse'>
        <tr style='background-color:#911813'>
            <th style='color: #FFFFFF'>" & Label_Header & "</th>
        </tr> 
    </table> </font size>
    <table width='100%' border='1' cellpadding='5' style='border:1px solid white; border-collapse:collapse'>
        <tr style='text-align:left'>
            <th><i>"& Label_Date & "</i></th>
            <th></th>
        </tr>
        <tr>
            <td>" & Input_Date & " </td>
            <td> <img src='Logo_Quistor.png' style='max-width:50%'></td>
        </tr>
        <tr style='text-align:left'>
            <th><i>" & Label_User & "</i></th>
            <th></th>
        </tr>
        <tr>
            <td>" & Input_User & " </td>
            <td>Customer logo</td>
        </tr>
        </tr><tr>" & 
    "</table>"

 

 

 

 Then with a button, send this formatting as an email with the Outlook365 connection (see image attachment Outlook). However it disregarded all of my formatting and now looks totally different.

Outlook Screenshot 2021-11-26 121908.png

 

 

Office365Outlook.SendEmailV2(
    User().Email, 
    "Test Customer Daily Healthcheck Report", 
    HtmlText1.HtmlText, {Attachments:LogoCollection, IsHtml:true})

 

 

 

  

What am I doing wrong here?

Thank you!

2 REPLIES 2
C-Papa
Super User
Super User

try putting the styling in the line e.g.

 

<td>12345</td>

becomes

<td style='text-align:left'>12345</td>

dchiu
Frequent Visitor

Thank you! That seemed to work for alignment/fontsize.

 

I tried the same for table border color, however this still did not work. If I set the border color to white with in-line styling, the emailed version is still defaulted as black.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (2,974)