Dynamic Email Template

Dan Creed


The requirement is to send an email to a contact via an API. 
The problem is regarding the dynamic content in the body of the email. 
Apart from populating the contact name in the email, how can I also include a building's WiFi code, housekeeping service day etc.. as there are not associated with a contact on Act-On.



1 comment

  • Comment author
    Chris Apgar

    Hi Dan,

    It sounds like your best bet here would be to bring that data into Act-On – then you can create your message templates with those personalization fields and they will populate automatically. If you're not able to do that, you'd have to do something like:

    1. Put special placeholders in your email templates (e.g. ##WIFICODE##)
    2. Use Get message HTML contents to pull down the message body
    3. Use a script to replace the placeholders with real customer data (##WIFICODE## --> "password123") in the message HTML
    4. Create a new message with this new HTML

    Hope that helps!


Please sign in to leave a comment.