Skip to main content
Use HAPI to Include Event Info in Your Email

You can use HAPI to generate additional field data when sending an e-mail.

Updated over 3 years ago

Lets say you want to wire up an e-mail notification after someone registers for an event. Start by creating your email. Once you have the bulk of your content, start to replace the variables with HAPI variables.

For example, remove the name of the event and put {@event_title@}. Once these are in place, you need to add the following code to your outer most element.

data-pv-component="event" data-pv-type="eventview" data-pv-parameters="{event_no: {@reference_no@}}"

Please note that once you add this, editing the text has to be done in the HTML

Once the e-mail is triggered, it will include the dynamic data.

Did this answer your question?