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

Notifications

Announcements

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!

Categories:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard