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 Automate / Email body to Teams te...
Power Automate
Suggested Answer

Email body to Teams text/background color

(3) ShareShare
ReportReport
Posted on by 20

Hello,

I am looking to push email bodies to Teams using a Flow.  I have been able to do this successfully, however, I use dark mode in Teams and the emails that get pushed to Teams come with gray font that VERY difficult to read/see. 

I tried changing the font color and background color in the Message attributes of the Post message in a chat or channel node, but it does not look to affect the inserted Body data.  Is there a way to either make this work with dark mode in Teams or force the body background to be shown with certain color?

Thank you for any direction.

 

zride91_1-1704889713140.png

 

Categories:
I have the same question (0)
  • zride91 Profile Picture
    20 on at

    As an update, I've tried utilizing Copilot to help, but the changes it makes do not affect the results.

  • zride91 Profile Picture
    20 on at

    Also, I want to note that the email shows in Outlook in a readable manner in Dark mode, Outlook shows all the text white, where Teams keeps it dark gray.

  • Ecto1Passenger Profile Picture
    5 on at

    I am facing the exact same problem. Has anyone found a fix yet?

  • zride91 Profile Picture
    20 on at

    I still have not found a solution to this yet, so I either struggle to make things out, or blind myself in classic light mode 🙂  Once this is figured out, I'd like to utilize pushing the e-mails to a Team, but until this is worked out, it's just a failed trial exercise for me...

  • Suggested answer
    NR-22081515-0 Profile Picture
    2 on at
    I just ran into the same issue. The problem appears to be embedded html in the body from the email being carried over to teams. I was able to fix this with an HTML to text entry to clean the output of rogue html. From there you can format as you like.
     
    In order to preserve newline formatting:
    - Add a new variable initialized as pressing enter in the variable box.
    - Use the newline variable to replace the newline characters in the body with <br> so teams can format it correctly.
    - Pass the ouput through as your message body.
     
    replace(outputs('Html_to_text')?['body'],variables('newline'),'<br>')
     
  • AE-30101350-0 Profile Picture
    2 on at
    Thanks @NR-22081515-0 this was helpful if using unstructured data and plain text. However, if I get structured emails I found another option with is not 100% fine but at least the general text gets converted according to dark mode. 
    Tables will still be in black but at least the structure of the email will be available. 
     
    Select the body of the email. 
    Once it is included press on it and then select a font color, e.g. blue. 
    If you now run the flow the text is getting pushed in Teams dark mode in white (except the tables). But the whole structure stays.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard