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
Super User
Super User

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
Super User
Super User

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

 

Thank you, Adrain

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,982)