Share via

Azure Communication Services Add Footer

Richard 31 Reputation points
2025-07-15T17:29:11.9666667+00:00

Is there any way to add a footer to all email that passes through our Azure communication service instance? We have a company footer we would like added to all externally sent emails. Thank you.

Azure Communication Services

Answer accepted by question author

Shree Hima Bindu Maganti 7,420 Reputation points Microsoft External Staff Moderator
2025-07-17T17:06:37.7666667+00:00

Hi @Richard
Thanks for your Update.
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

Issue: Azure Communication Services Add Footer

Solution:Thanks everyone for their input. Using a logic app/function app would be preferable as outlined by Alex and others but that could get costly as millions of emails will be routing through this ACS instance a month. I've found a way to apply a company footer directly from my postfix servers (using altermime) that should work fine. Again, thanks to everyone for their input.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Richard 31 Reputation points
    2025-07-17T17:01:37.58+00:00

    Thanks everyone for their input. Using a logic app/function app would be preferable as outlined by Alex and others but that could get costly as millions of emails will be routing through this ACS instance a month. I've found a way to apply a company footer directly from my postfix servers (using altermime) that should work fine. Again, thanks to everyone for their input.

    Was this answer helpful?

    2 people found this answer helpful.

  2. Alex Burlachenko 21,805 Reputation points MVP Volunteer Moderator
    2025-07-16T13:24:00.4233333+00:00

    hi richard,

    thanks for posting this one :)

    u gotta understand that azure communication services is more about the transport layer its not a full-blown email marketing platform. but hey, we can get creative here.

    for the microsoft way, u have two main paths

    1. pre-processing with logic apps or azure functions u can hook up a logic app before emails hit the communication services. here's a quick example of how to append text to emails using logic apps

    // in logic apps workflow actions: { "Initialize_variable": { "inputs": { "variables": [ { "name": "emailBody", "type": "string", "value": "@{triggerBody()?['body']}" } ] }, "runAfter": {}, "type": "InitializeVariable" }, "Append_footer": { "inputs": { "name": "emailBody", "value": "@{variables('emailBody')}\n\n---\ncompany footer text here" }, "runAfter": { "Initialize_variable": [ "Succeeded" ] }, "type": "AppendToStringVariable" } }

    full docs on logic apps email processing https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-overview

    1. post-processing with transport rules if u're using exchange online somewhere in your flow, u can set up transport rules to append disclaimers. not pure ACS but might work depending on your architecture.

    now for some vendor-agnostic tricks that might help in other scenarios too

    if u control the email sending code, just append the footer before sending. most email SDKs let u modify the body easily

    for html emails, make sure ur footer is properly separated with <!-- footer --> tags or similar

    consider using merge tags like {{footer}} if u're doing templated emails

    common pitfalls to watch for

    footers might break html structure if not done carefully

    email clients sometimes mess with styling

    mobile rendering can be tricky

    if u need more specific help with implementation, share which part of the flow u control - are u using the ACS email client SDK or the REST API directly? that changes the game a bit.

    let me know if u get stuck

    Best regards,

    Alex

    and "yes" if you would follow me at Q&A - personaly thx.
    P.S. If my answer help to you, please Accept my answer
    

    https://ctrlaltdel.blog/

    Was this answer helpful?

    0 comments No comments

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.