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 / Sending an Email with ...
Power Apps
Answered

Sending an Email with a HTML Table

(0) ShareShare
ReportReport
Posted on by 3,284

Hi, thanks to @Adrian_Celis , I was able to get a table inserted into my email.

 

Now  

If I would like to add at the end of my email a picture, another line of text and also send the email with "Bcc". How can I do this?

 

The picture is added to my powerapp as media.

 

I have been trying this :

 

<!DOCTYPE html>
<html>
<body>

<h2>HTML Image</h2>
<img src="pic_trulli.jpg" alt="Trulli" width="500" height="333">

</body>
</html>

 

But no result.

 

Thanks in advance.

 

 

*************

 

PS/

 

The original table looks like this:

 

"<h3>Customer : " & varYourValueHere & "</h3>" &
"<h3> Address : " & varYourValueHere & "</h3>" &
"<h3>Contact : " & varYourValueHere & "</h3>" &
"<h3>Title : " & varYourValueHere & "</h3>" &
"<strong> Details: </strong>" & "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" & "<tr style='background-color:#efefef'>
<th> H1 </th> <th> H2 </th> <th> H3 </th> <th> H4 </th> <th> H5 </th> <th> H6 </th> <th> H7 </th> <th> H8 </th>
</tr>
<tr style='text-align:center'>" & Concat(
Cart,
"<td>" & H1_Value & " </td>
<td>" & H2_Value & " </td>
<td>" & Text(H3_Value,"$ #,##0.00") & " </td>
<td>" & H4_Value & " </td>
<td>" & H5_Value & " </td>
<td>" & H6_Value & " </td>
<td>" & H7_Value & " </td>
<td>" & H8_Value & " </td>",
"</tr><tr>"
) & "</table>" & "<strong> Description: </strong>" & "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" & "<tr style='background-color:#efefef'>
<th> T1 </th> <th> T2 </th> <th> T3 </th>
</tr>
<tr>" & Concat(
Cart,
"<td style='vertical-align:top'>" & HtmlTextT1.HtmlText & " </td>
<td style='vertical-align:top'>" & HtmlTextT2.HtmlText & " </td>
<td style='vertical-align:top'>" & HtmlTextT3.HtmlText & " </td>",
"</tr>"
) & "
<tr style='text-align:center; font-weight:bold'>
<td>" & Text(varYourValueHere,"$ #,##0.00") & " </td>
<td>" & Text(varYourValueHere,"$ #,##0.00") &" </td>
<td>" & Text(varYourValueHere,"$ #,##0.00") & " </td>
</tr>
</table>"

 

 

Categories:
I have the same question (0)
  • Verified answer
    Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @sajarac 

    • To have an image in your email from your PowerApps media files. You should convert the file into JSON using the JSON function (if your filename is .'pic_trulli.jpg' then use 'pic_trulli' only)
    • Regarding the new line, you can use the "<br>" tag when using HTML.
    • The BCC is a built in function in the Outlook mail connector. You should use curly brackets to use BCC.
    Set(varImage,JSON(pic_trulli,IncludeBinaryData));
    Office365Outlook.SendEmailV2(
     "your@email.com",
     "Test",
     "<img src=" & varImage & " height='500' width='500'>
     <br>
     <br>
     New Line Here",
     {Bcc:"youremail@address.com"})

     

  • Sajarac Profile Picture
    3,284 on at

    Thank you! Thank you! Thank you! Thank you! 

     

     

  • Sajarac Profile Picture
    3,284 on at

    Hi @Adrian_Celis ,

     

    Would you mind to give me a hand with this post?

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Insert-an-html-in-email/m-p/1528424#M394828

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard