If you need to use different email signatures for internal and external recipients, you can enable the recipient-based signature feature. This allows your signature to automatically refresh and adjust based on the type of recipient you add to your email. You may add this feature by modifying the XML or manifest file.
To enable this functionality, you must update the add-in’s manifest (XML) file with a specific configuration.
Step 1: Modify the Manifest File
Open your add-in’s XML or manifest file using Notepad or a code editor of your choice.
Locate the section that includes the highlighted configuration line (refer highlighted section in yellow).
Insert the following code in the same section:
<LaunchEvent Type="OnMessageRecipientsChanged" FunctionName="onMessageRecipientsChanged"/>
4. Save the changes to the XML file.
Step 2: Redeploy the Updated Add-In
If the add-in has already been deployed:
Go to Microsoft Integrated Apps.
Select Update Add-in.
Upload the modified manifest (XML) file to apply the changes.
Once deployed, the add-in will dynamically update the signature based on the recipient's address—ensuring the correct signature is applied for internal or external emails.
Note: There may be up to 72 hours replication time due to Microsoft Integrated Apps delay. You may test the function after this period once you have the Recipient email rules already created to make sure that the update is already reflected.