What features do you want to see added to Mailgun?

Template Variable Logic

Allow logic to be included in templates to make decisions based on template variable data.

{% if %recipient.name% %}
Hi, %recipient.name%!
{% else %}
{% endif %}

10 votes
Sign in
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Sign in with: Facebook Google
Signed in as (Sign out)
  • Andrey Larionov commented  ·   ·  Flag as inappropriate

    +1 for this feature. Handlebars syntax is pretty clear, and this will simplify adding nice welcome messages when some recipients names in mailing list are unknown. Now this could be solved by either separate mailing lists and templates for anonymous and well-known people (terrible way...), or with backend-side template rendering (Django in our case), which causes additional traffic and complexity.

  • Jonathan Boarman commented  ·   ·  Flag as inappropriate

    I highly recommend a Handlebars-based templating syntax. SparkPost also supports a variant of Handlebars, although I don't care for their lack of adherence to the spec.

Feedback and Knowledge Base