how to append signature below the reply mail in intune

Syam Kumar N 0 Reputation points
2025-02-17T21:13:44.0866667+00:00

i have created a rule for new/forwarded mail in microsoft exchange and appended my own html code,so that every user in my organisation will have the uniform signature. the user details will be retrived from AD. it works fine. now i want to create another rule for reply mails, whenever a user tries to reply an email i have another html code, that html to be appended below the reply mail not at the bottom. anyone please help

Microsoft Exchange Online
{count} votes

2 answers

Sort by: Most helpful
  1. Alex Zhang-MSFT 6,935 Reputation points Microsoft External Staff
    2025-02-19T00:58:58.7033333+00:00

    Hello, @Syam Kumar N,

    Welcome to the Microsoft Q&A platform!

    For reply emails, you can create a similar rule in Microsoft Exchange, but there are some limitations to be aware of. Currently, Exchange's built-in disclaimer rules append the HTML code at the bottom of the entire email thread, including replies. Unfortunately, there isn't a direct way to insert the HTML code immediately below the reply text using the built-in tools. Because it is the default setting for this. I apologize for the inconvenience.

    If you need detailed steps on how to set up the rule in Exchange, here's a brief guide:

    1.Open the Exchange Admin Center (EAC).

    2.Navigate to Mail flow > Rules.

    3.Create a new rule.

    4.Name the rule.

    5.Set conditions to apply the rule to reply emails.

    6.Use the "Append disclaimer" action to add your HTML code.

    7.Test the rule to ensure it works as expected.

    User's image

    Meanwhile, I sincerely suggest you post this precious suggestion to Microsoft. Microsoft will update their product based on customers' suggestions. Believe your suggestion will help many other people in the future. Your understanding and co-operation are highly appreciated.

    Here is our official URL to submit your suggestion: Exchange Online · Community.

    Should you need more help on this, you can feel free to post back. 


    If the answer is helpful, please click on “Accept answer” as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions.

    Thank you for your support and understanding.

    Best Wishes,

    Alex Zhang


  2. Techhelp Volunteer 225 Reputation points
    2025-03-25T15:26:43.7033333+00:00

    You can check below methods:

    Method 1: Using Exchange Transport Rules

    1. Create a new transport rule specifically for replies:
      • Go to Exchange Admin Center > Mail flow > Rules
      • Create a new rule and set the condition "The message is a reply"
    2. Use the "Append a disclaimer" action:
      • Select "Append the disclaimer" and "Fall back to action if disclaimer can't be applied"
      • For the disclaimer location, you'll need to use HTML positioning
    3. HTML Code Modification:
      
         <!--[if gte mso 9]>
      
         <div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
      
         <p class="MsoNormal">
      
         <![endif]-->
      
         <!-- Your signature HTML here -->
      
         <!--[if gte mso 9]>
      
         </p>
      
         </div>
      
         <![endif]-->
      
      

    Method 2: Using PowerShell for More Control

    For more precise positioning, you might need to use PowerShell:

    
    New-TransportRule -Name "ReplySignature" `
    
        -MessageTypeMatches "Reply" `
    
        -ApplyHtmlDisclaimerLocation "Append" `
    
        -ApplyHtmlDisclaimerText "<div style='margin-top: 15px; border-top: 1px solid #ccc; padding-top: 15px'>Your signature here</div>" `
    
        -ApplyHtmlDisclaimerFallbackAction "Wrap"
    
    

    Important Considerations

    1. Positioning: The signature will appear immediately after the user's reply text, before any quoted/forwarded content.
    2. AD Attributes: To include dynamic AD attributes in replies, ensure your HTML template includes the same substitution variables as your new message signature.
    3. Testing: Test thoroughly with different email clients (Outlook, web, mobile) as HTML rendering can vary.
    4. Limitations: Transport rules have limitations with rich formatting in replies. For more complex requirements, consider using:
      • Office 365 Mail Flow Rules (if available)
      • Third-party signature management solutions
    0 comments No comments

Your answer

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