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 Automate / automate to send HTML ...
Power Automate
Unanswered

automate to send HTML email

(0) ShareShare
ReportReport
Posted on by 40
Dear Developer,
 
I am an assistant that do not have deep developer knowledge.
 
I've been setting up the flow to automate email to be sent to candidate once interview schedules are planned.  It may involve few interviews on the same day and I wish to include all the details as confirmation:
1) schedules
2) our office address
3) JD
4) the interviewers' biographies

This is to enhance the candidates experience and the email has our company logo too.  The flow worked well yesterday early morning.. but when I added more features, the email lost all the formatting with our fonts and table frames... everything just text and even worse with funny symbols while I kept on testing.

I have attached the email template text file (also the outlook file) and the exported flow for your reference.  I have an excel file to have all the inputs (but not shared here).  Can you tell what went wrong?

Thanks a lot in advance for your insights!
I have the same question (0)
  • WarrenBelz Profile Picture
    153,775 Most Valuable Professional on at
    The Outlook connector can be unforgiving to complex styles. Do you have the original code that worked - if so I suggest you start with that and add small bits at a time until you find what broke it. I am pasting your HTML below for ease of reference.
    <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style><![endif]--><style><!--
    /* Font Definitions */
    @font-face
    	{font-family:PMingLiU;
    	panose-1:2 2 5 0 0 0 0 0 0 0;}
    @font-face
    	{font-family:"Cambria Math";
    	panose-1:2 4 5 3 5 4 6 3 2 4;}
    @font-face
    	{font-family:Aptos;}
    @font-face
    	{font-family:"Segoe UI";
    	panose-1:2 11 5 2 4 2 4 2 2 3;}
    @font-face
    	{font-family:"\@PMingLiU";
    	panose-1:2 1 6 1 0 1 1 1 1 1;}
    @font-face
    	{font-family:Tenorite;}
    @font-face
    	{font-family:"Petit Serif Brunswick";
    	panose-1:2 0 6 2 2 2 0 2 0 3;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    	{margin:0cm;
    	font-size:12.0pt;
    	font-family:"Aptos",sans-serif;}
    span.EmailStyle17
    	{mso-style-type:personal-compose;
    	font-family:Tenorite;
    	color:windowtext;}
    span.EmailStyle18
    	{mso-style-type:personal;
    	font-family:Tenorite;
    	color:windowtext;}
    .MsoChpDefault
    	{mso-style-type:export-only;}
    @page WordSection1
    	{size:612.0pt 792.0pt;
    	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
    div.WordSection1
    	{page:WordSection1;}
    --></style><!--[if gte mso 9]><xml>
    <o:shapedefaults v:ext="edit" spidmax="1026" />
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <o:shapelayout v:ext="edit">
    <o:idmap v:ext="edit" data="1" />
    </o:shapelayout></xml><![endif]--></head><body lang=EN-HK link="#2C49B5" vlink="#2C49B5" style='word-wrap:break-word'><div class=WordSection1><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='background:#F6F6EF;padding:15.0pt 9.0pt 15.0pt 9.0pt'><div align=center><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=640 style='width:480.0pt'><tr><td style='background:white;padding:15.0pt 15.0pt 7.5pt 15.0pt'><p class=MsoNormal align=center style='text-align:center'><span style='color:black'>
    <img width="201" height="23" style="width:2.0902in;height:.243in"
         src="data:image/png;base64,{{BRUNSWICK_LOGO}}">
    </span><o:p></o:p></p></td></tr><tr><td style='background:white;padding:9.0pt 0cm 15.0pt 0cm'><p class=MsoNormal align=center style='text-align:center'><b><span style='font-size:16.5pt;font-family:"Petit Serif Brunswick";color:#0B0383'>Interview Confirmation</span></b><b><span style='font-size:16.5pt;font-family:"Petit Serif Brunswick";color:#0B0384'><o:p></o:p></span></b></p></td></tr><tr><td style='background:white;padding:0cm 15.0pt 0cm 15.0pt'><div align=center><table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width=550 style='width:412.5pt;border-collapse:collapse;border:none'><tr style='height:8.2pt'><td style='border:solid #0B0384 1.0pt;background:#0B0384;padding:6.0pt 6.0pt 6.0pt 6.0pt;height:8.2pt'><p class=MsoNormal><b><span style='font-size:11.5pt;font-family:Tenorite;color:white'>Schedule Details </span></b><b><span style='font-size:11.5pt;font-family:Tenorite'><o:p></o:p></span></b></p></td></tr><tr><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>Dear {{Candidate FirstName}},<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>This is to confirm the interview arrangement to be on {{Interview Date}}, {{Start Time}}, {{Timezone}} at our office with details below:<br><br><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>Upon your arrival, please ask for {{Local Contact}} and our receptionist will take you to the conference room.&nbsp; Your interview schedule as follows:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p><table class="MsoTable15Grid1LightAccent3"
           align="center"
           role="presentation"
           cellspacing="0"
           cellpadding="0"
           border="0"
           style="border-collapse:collapse; width:60%; max-width:500px; margin:0 auto; border:1px solid #0B0384;font-family:Tenorite, Arial, sans-serif; font-size:11.5pt;">
      <tr style="background:#F7F9FC;">
        <th style="padding:6px 10px;border:1px solid #0B0384;">Time</th>
        <th style="padding:6px 10px;border:1px solid #0B0384;">Interviewer</th>
        <th style="padding:6px 10px;border:1px solid #0B0384;">Bio</th>
      </tr>
    
      {{InterviewRows}}
    
    </table>
    <p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>In case of further assistance, please feel free to reach out to {{Local Contact}} at {{Local_mobile}}.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>Looking forward to meeting you on the date!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>Thank you.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p></td></tr><tr><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;background:#0B0383;padding:5.95pt 3.0pt 5.95pt 3.0pt'><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><b><span lang=EN-US style='font-size:11.5pt;font-family:Tenorite;color:white'>Job Description (JD)</span></b><b><span style='font-size:11.5pt;font-family:Tenorite'><o:p></o:p></span></b></p></td></tr><tr><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>Please refer to the first attachment.&nbsp; {{JD link}}<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p></td></tr><tr><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;background:#0B0383;padding:5.95pt 3.0pt 5.95pt 3.0pt'><p class=MsoNormal><b><span style='font-size:11.5pt;font-family:Tenorite;color:white'>Skills &amp; Behaviour Framework</span></b><b><span style='font-size:11.5pt;font-family:Tenorite'><o:p></o:p></span></b></p></td></tr><tr><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>{{SKILLS PDF}}<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p></td></tr><tr><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;background:#0B0383;padding:5.95pt 3.0pt 5.95pt 3.0pt'><p class=MsoNormal><b><span style='font-size:11.5pt;font-family:Tenorite;color:white'>Interviewer&#8217;s Biography</span></b><b><span style='font-size:11.5pt;font-family:Tenorite'><o:p></o:p></span></b></p></td></tr><tr><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>{{Interviewer}}<br>{{Interviewer bio}}<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p></td></tr><tr><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;background:#0B0383;padding:5.95pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><b><span style='font-size:11.5pt;font-family:Tenorite;color:white'>Office Instruction</span></b><b><span style='font-size:11.5pt;font-family:Tenorite'><o:p></o:p></span></b></p></td></tr><tr><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><b><span style='font-size:11.5pt;font-family:Tenorite'>Brunswick Group Ltd<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>18/F Dina House, Ruttonjee Centre, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>11 Duddell Street, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>Central, Hong Kong<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:11.5pt;font-family:Tenorite'>Dress code:<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>Monday to Thursday: Business Formal<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'>Friday: Causal Formal<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p></td></tr><tr style='height:24.8pt'><td width="100%" style='width:100.0%;border:solid #0B0384 1.0pt;border-top:none;background:#A3B6DE;padding:3.0pt 3.0pt 3.0pt 3.0pt;height:24.8pt'><p class=MsoNormal><span style='font-size:11.0pt;color:white'>Best Regards,</span><span style='font-size:11.0pt'><o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:white'>{{Local Contact}}</span></b><span style='font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:white'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Segoe UI",sans-serif;color:white'>Executive Assistant<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><a href="http://www.brunswickgroup.com"><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:#0070C0'>www.brunswickgroup.com</span></a></span><span style='font-size:9.0pt;font-family:"Arial",sans-serif'><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><a href="https://www.brunswickgroup.com/dei-at-brunswick-group/?utm_source=email_signature&amp;utm_medium=email&amp;utm_campaign=dei_signature_link/"><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#0070C0;text-decoration:none'>Read Brunswick&#8217;s Diversity, Equity</span><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#0070C0'> </span><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#0070C0;text-decoration:none'>&amp;</span><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#0070C0'> </span><span style='font-size:8.0pt;font-family:"Segoe UI",sans-serif;color:#0070C0;text-decoration:none'>Inclusion Statement</span></a></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p></td></tr></table></div><p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-family:Tenorite;color:black'><br><br></span></b><b><span style='font-family:Tenorite'><o:p></o:p></span></b></p></td></tr></table></div></td></tr></table><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:Tenorite'><o:p>&nbsp;</o:p></span></p></div></body></html>
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • WingC Profile Picture
    40 on at
    Dear Warren,

    I don't have the original file and I cannot trace back the history.  I cannot find any restore button in the flow or my template text file.
     
    For my template text file, I didn't make too much changes to it.  Probably adding some connectors to the flow.  But the email content is totally fine for the mapping of information, but just lost all formatting and even adding funny symbols or characters.
     
    I have also tried to delete and add new email connector, but not helping.

    Would you suggest me to start again with new flow?

    Thanks.
  • WarrenBelz Profile Picture
    153,775 Most Valuable Professional on at
    Hi @WingC,
    The first thing to do is put all of that into a HTML Text control in Power Apps and see if you can get it displaying. I also suggest you start with sections of code and progress as you get them working. Also (I know this is obvious), save each working sample in separate text files so you can regress if needed. One thing you might want to check is whether you have closed every tag (parse it out into indented lines)
     
    I tend to keep any HTML in Power Apps or Power Automate to the most basic tags that will give a reasonable result and test them in a HTML control before I do anything with them.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
     
     
     
  • Assisted by AI
    WingC Profile Picture
    40 on at
    This is now fixed.
     
    thank you very much.
  • WarrenBelz Profile Picture
    153,775 Most Valuable Professional on at
    HI @WingC,
    All I can suggest is what I posted earlier. Get rid of all of the styling and get the basic structure displaying in a HTML Text Control, then add back in one example of each of your styles ands ee what it looks like. I do not think any responders here will be able to debug that amount of code without building a model with your data set (and having the time to do it).

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 124 Super User 2026 Season 1

#2
Ellis Karim Profile Picture

Ellis Karim 52 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 50

Last 30 days Overall leaderboard