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 / creating an e-mail sig...
Power Apps
Answered

creating an e-mail signature

(0) ShareShare
ReportReport
Posted on by 149

I hope I'm explaining this right. Our company has an e-mail signature composed out of logo's, hyperlinks and of course text. It was developed by a third party, which created our company style.

 

We all just got one standard by mail, edited our name and saved it in the signature menu in Outlook (just copy/pasting it).

 

Microsoft has it own templates for this I noticed, and when I opened it, it was just a Word-file, like this:

StefWS_0-1670083911484.png

We have something similar.

 

Microsoft also just recommend copy/pasting it to email and then editing the data.

 

But how on earth can I add this to the body of an email?

 

Categories:
I have the same question (0)
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @StefWS 

     

    (1) Get your HTML code.

    (2) Copy it to a text edit like NotePad.

    (3) Replace the double quotes ( " ) with single ones  ( ' )

    cha_cha_0-1670085708875.png

     

    (4) Optional - Preview your code with an HtmlText control.

    cha_cha_1-1670085797609.png

     

    (5) If all is good in #4, in your SendEmail body, you can add the HTML codes inside a quote.

    cha_cha_2-1670085948230.png

     

    Alternatively, if you want to make it easier to edit in the future, you can always keep the HtmlText control in #4 and just hide it when you publish the app. Then in your send mail code, refer to it like this:

    cha_cha_3-1670086024432.png

     


      ✔️
    Just in case you my answer helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

     

      🔗
    🕸bistek.space  🐦 @cha_bistek  📺 @BisTekSpace 

     

  • StefWS Profile Picture
    149 on at

    Thank you for helping. Unfortunately I'm not very familiar with html. I've send an email to myself with just the signature, then went to actions - view source. I got a really long block of code indeed. In Powerapp HTMLtext it errored out.

     

    How do I know which part I need?

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @StefWS 

     

    To get the HTML on your email, right click over your signature and hover over the code. While hovering, you should be able to notice that it highlights the part of the email. You should hover up until all your signature is highlighted then, click on Copy, then copy element.

     

     

     

    cha_cha_0-1670087360310.png

    cha_cha_1-1670087456855.png

     

    You can test the code by following Step 3 and 4 in my previous response.

  • Verified answer
    StefWS Profile Picture
    149 on at

    Hi @cha_cha ,

     

    Sorry for the late reply. I needed my IT-colleague to figure this out along with me.

     

    Took a while to understand, but I'm getting closer. The HTML-text block in PowerApp look nothing like it, however if I send a mail with this HTML-object, it look quite alright.

     

    I'm struggling now however, how I can change the pieces with my name to the name of the logged in user, and how I can reference to the images, because I can't seem to edit much in this block. Simply editing my name and replacing it with the name of a control does not seem to work.

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @StefWS 

     

    Glad you got it sorted.

     

    So For Names to make it dynamic, let say this is the HTML code.

    "<div>......Gibberish HTML codes.........
     <div>......Gibberish HTML codes.........
     <div>
     YOUR NAME
     </div>
     </div>......Gibberish HTML codes.........
    </div>
    "

     

    Now replace it with this code: " & User().FullName & "

    It would fit like below:

    "<div>......Gibberish HTML codes.........
     <div>......Gibberish HTML codes.........
     <div>
     " & User().FullName & "
     </div>
     </div>......Gibberish HTML codes.........
    </div>
    "

     

     


      ✔️
    Just in case my response helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

     

      🔗
    🕸bistek.space  🐦 @cha_bistek  📺 @BisTekSpace 
  • StefWS Profile Picture
    149 on at

    Great that worked!

     

    Now for the images :

    I found something like:

     

    <img border='0' width='66' height='10' style='width:.6833in;height:.1083in' id='Afbeelding_x0020_5' src='cid:image002.png@01D90740.1129E540' alt='signature_1557849809'>

     

    Can I refer to an uploaded image in the app, or perhaps to an SPList, or document library?

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @StefWS 

     

    This is actually not the full solution. If you send this to GMail, the image won't show because Gmail doesn't allow this kind of image rendering. 

     

    Set(varBase64,JSON(User().Image,JSONFormat.IncludeBinaryData));
    src='"&varBase64&"' 

    cha_cha_0-1670329290611.png

     

     

    This is an example in Gmail.

    cha_cha_1-1670329420039.png

     

    There are various ways of getting past this but those processes will involve setting up a separate list of users or your company may decide on having a unified picture.

  • StefWS Profile Picture
    149 on at

    @cha_cha 

     

    Alright,

     

    So I've uploaded an image (on the left) and then used a control to trigger:

     

     

    Set(varIMG,JSON(Image3.Image))

     

     

    This results in:

    StefWS_0-1670332418046.png

    But when I change the control to :

     

    Set(varIMG,JSON(Image3.Image,JSONFormat.IncludeBinaryData));​

     

     

    Then I get:

     

    StefWS_1-1670332629253.png

    When I send the email, I get:

    StefWS_2-1670332907659.png

     

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @StefWS 

     

    Apologies, I was really busy in the past few days.

     

    How are you attaching the image to the code? Here's  my code:

    Set(varImage,JSON(Image2.Image,JSONFormat.IncludeBinaryData) );
    Office365Outlook.SendEmailV2(User().Email,"checkImage","<img src=" & varImage & "/>");

    cha_cha_0-1670637919917.png

     

    Also, kindly please mark the response that answered your question as a Solution. This makes it easy for the search engine to find Solved questions if someone in the community has the same problem as yours.

     

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 977

#2
Valantis Profile Picture

Valantis 664

#3
11manish Profile Picture

11manish 530

Last 30 days Overall leaderboard