locked
Passing content of a HTML file to a variable RRS feed

  • Question

  • Hi,

    I have tried to set HTML signature for users of Outlook Web.

    The htm file (E:\mysignature.htm) is openned fine in the browser displaying the image.

    The image is encoded in base64, thus in HTML file, the tag is   <img src='data:image/png;base64,iVBORw0K....'>

    PowerShell:

          $SignatureHtml = Get-Content "E:\mysignature.htm" | Out-String
          Set-MailboxMessageConfiguration -Identity $userName -AutoAddSignature $true -SignatureHtml $SignatureHtml


    The script ran without error, but the html were set to:

        <img src=''>

    Any idea would be very appreciated.

    Thanks.

    Thursday, March 22, 2018 3:25 PM

All replies

  • Obviously there is an issue with the HTML.  All Html cannot be supported as signatures so display in browser is not proof.

    Post in Exchange forum for more specific help on using signatures.


    \_(ツ)_/

    Thursday, March 22, 2018 8:35 PM