web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / HTML text widget forma...
Power Apps
Unanswered

HTML text widget formatted different when sent as email

(0) ShareShare
ReportReport
Posted on by 14

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!

html Screenshot 2021-11-26 120729.png
Outlook Screenshot 2021-11-26 121908.png
Categories:
  • C-Papa Profile Picture
    1,836 on at

    try putting the styling in the line e.g.

     

    <td>12345</td>

    becomes

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

  • dchiu Profile Picture
    14 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard