We’re proud to announce that you can now use conditional content when creating a newsletter (or any email on our platform). Let’s take a look at an example.
In Mailcoach, you can add custom attributes to a subscriber. Here we are adding a language
attribute and setting it to “FR”
In our template we can now use that attribute to render content conditionally. If the language is set to “FR” the mail will include “Bonjour” otherwise it will contain “Hello”.
{% if subscriber.language == "FR" %} Bonjour {% else %} Hello {% endif %}
Support for conditionals is available in both Mailcoach, and the self-hosted version of Mailcoach.
Mailcoach is the best service for sending out email campaigns. We also offer email automation that allows you to quickly build a drip campaign. You can manage your content and templates via powerful HTML and Markdown editors. Start your free trial now.