Share via

Using a dynamic HTML script for my email signature

jamie dimech 40 Reputation points
2026-04-06T09:43:52.2133333+00:00

Hi

I want to add a dynamic HTML script for my company's email signature on outlook. It needs to be enforced to all my employees in my M365 directory and it needs to be able to read their name, role, and email address to provide them as hyperlinks in the signature.

How can i go about this?

Microsoft 365 and Office | Development | Office JavaScript API
0 comments No comments

Answer accepted by question author
  1. Jayden-P 19,220 Reputation points Microsoft External Staff Moderator
    2026-04-06T10:44:47.5133333+00:00

    Hi @jamie dimech

    You can follow this article to set the organization-wide signature by using Exchange Admin Center (EAC)

    Organization-wide message disclaimers, signatures, footers, or headers in Exchange Online | Microso…

    Access EAC > Mail flows > Rules > New rules > Apply a disclaimer > From here you can customize what you want.

    User's image

    You can select apply to all message to enforce for all users.

    Append or prepend based on your preference.

    Then paste this in:

    <table style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #333333; border: none;">
    <tr>
    <td style="padding: 0 10px 0 0;">
    <strong>%%DisplayName%%</strong><br>
          %%Title%%<br>
    <a href="mailto:%%WindowsEmailAddress%%" style="color: #0066cc;">%%WindowsEmailAddress%%</a>
    </td>
    </tr>
    </table>
    
    

    You can add other attributes as well such as %%Department%%, %%City%%, %%Company%%, etc.

    However, there will be some limitations: Create organization-wide signatures and disclaimers - Microsoft 365 admin | Microsoft Learn

    User's image

    The outcome should look like this: the signature will appear above the message if you choose Prepend, and below the body if you choose Append.

    User's image

    Please try and let me know if you need anything else.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.