cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LionelCharley
Frequent Visitor

Power App HTML Help: Send an email Certifcate (Not Attachment)

I need assistance with power apps sending an email certificate with dynamic content from an edit form screen when a button is pressed.

Below is how the edit form looks like.

LionelCharley_0-1636196512045.png

 

 

Below is the formula.html code I am trying to use when I click a button. I am not an expert in HTML code that where I need assistance with.

 

Office365Outlook.SendEmailV2(

    DataCardValue8.Selected.Email,

    "Testing HTML",

    "<div style='width:800px; height:600px; padding:20px; text-align:center; border: 10px solid #787878'>

    <div style='width:750px; height:550px; padding:20px; text-align:center; border: 5px solid #787878'>

       <span style='font-size:50px; font-weight:bold'>Compensation Statement</span>

       <br><br>

       <span style=''ont-size:25px'><i>2021 Action</i></span>

       <br><br>

</div>

</div>"

)

 

 

 

 

Below is an example template of certificate I am trying to create using HTML codes.

LionelCharley_1-1636196512049.png

Any help on this will be highly appreciated. 

Thanks

Lio

1 ACCEPTED SOLUTION

Accepted Solutions
Adrian_Celis
Solution Supplier
Solution Supplier

Hi @LionelCharley 

 

You can insert dynamic values into HTML code by simply inserting your field values in it. Here is an example:

"<span style='font-size:50px; font-weight:bold'>" & Textbox1.Text & "</span>"

For the logo, you can't directly add an image there. You can convert your image file into base64 use that in your HTML code. Here is a video about base 64 : https://www.youtube.com/watch?v=bIne3DD3HAg

 

View solution in original post

2 REPLIES 2
Adrian_Celis
Solution Supplier
Solution Supplier

Hi @LionelCharley 

 

You can insert dynamic values into HTML code by simply inserting your field values in it. Here is an example:

"<span style='font-size:50px; font-weight:bold'>" & Textbox1.Text & "</span>"

For the logo, you can't directly add an image there. You can convert your image file into base64 use that in your HTML code. Here is a video about base 64 : https://www.youtube.com/watch?v=bIne3DD3HAg

 

View solution in original post

Thank you, Adrain

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,442)