cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Embbed a Picture from Peninput into HTML text control in PowerApps? send Mail via Office365.SendEmail

hello Support!

is it possible to embbed a Picture from Peninput into HTML text control in PowerApps?

The idea is to send a Mail with signature from the pen input by html mail via Office365.SendEmail
the control pen input delivers only a Picture format like appres://blobmanager/xxxxxxxxx ?
how can I get it like base64 format?


thanks for help!

Jens Rogge
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Embbed a Picture from Peninput into HTML text control in PowerApps? send Mail via Office365.SendEmail

Hi @jeanshak ,

 

Do you want to send a picture from peninput control to outlook email via HTML format?

Try to use JSON function to convert the peninput picture to JSON format( including Binary Data), and add the json to the HTML statement, then use Office365.SendEmail to send the picture to email.

Please enter the following formulas to Button' Onselect, and check if it meets your need.

Set(VarHtmlImg, "<!DOCTYPE html>
<html>
<head>
<title> Page Title </title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph</p>

<img src=" & JSON( PenInput1.Image,JSONFormat.IncludeBinaryData ) &">

</body>
</html>");

Office365Outlook.SendEmailV2("***@***.com","Test Pen input",VarHtmlImg)

Annotation 2019-10-21 100929.png

Best regards,
Sik

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Embbed a Picture from Peninput into HTML text control in PowerApps? send Mail via Office365.SendEmail

Hi @jeanshak ,

 

Do you want to send a picture from peninput control to outlook email via HTML format?

Try to use JSON function to convert the peninput picture to JSON format( including Binary Data), and add the json to the HTML statement, then use Office365.SendEmail to send the picture to email.

Please enter the following formulas to Button' Onselect, and check if it meets your need.

Set(VarHtmlImg, "<!DOCTYPE html>
<html>
<head>
<title> Page Title </title>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph</p>

<img src=" & JSON( PenInput1.Image,JSONFormat.IncludeBinaryData ) &">

</body>
</html>");

Office365Outlook.SendEmailV2("***@***.com","Test Pen input",VarHtmlImg)

Annotation 2019-10-21 100929.png

Best regards,
Sik

View solution in original post

Highlighted
Helper IV
Helper IV

Re: Embbed a Picture from Peninput into HTML text control in PowerApps? send Mail via Office365.SendEmail

Thanks; it works ! 

Jens Rogge
Highlighted
New Member

Re: Embbed a Picture from Peninput into HTML text control in PowerApps? send Mail via Office365.SendEmail

I am trying to use this formula but a lot of the code is between speechmarks - so is coming out of my e-mail as text - and therefore not doing anything - is this correct?

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,467)