Skip to main content

Use liquid variables to differenciate recipients by gender?

How to use liquid variables to differenciate recipients by gender?

I want Ms Pamela Thompson to receive an email with "Dear Madam Thompson"

While Mr David Brown ro receive the same email starting with "Dear Mr Brown"

I've check this page but it is not so helpful.

Official response from

Hi Stan,

You could use the following liquid syntax:

Dear {% if recipient.sex == 'F' %}Madam{% elsif recipient.sex == 'M' %}Mr{% else %}Madame/Mr{% endif %}  {{ recipient.last_name }},

Please note that this would only be useful if the signup profiles in your database have the 'Sex' field filled in, as the system cannot determine sex based on the name alone.

Share this post

Showing 3 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.