A user wrote us the following query:
I’m using Easy Forms for an online event registration, and I would like to send a different message, before the event (when the user will attend the webinar in live mode) or after the event when the user will only have access to the replay.
Is it already possible?
Is a something possible with the « conditional emails » addon?
The answer is Yes to both questions, and the solution applies not only to the conditional emails add-on, but to all other parts of the application that make use of Dynamic Content.
Basically, we need to add a condition in the email template.
{% assign current_date = 'now' | date: '%Y-%m-%d' %}
{% if current_date == '2022-04-01' %}
Thanks for the registration. Here’s the link to join us for the live events.
{% else %}
Thanks for the registration. Here’s the link to view the replay.
{% endif %}
That’s it!
Do you know what Dynamic Content is? Click here to read our documentation.