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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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