--- title: "Language specific emails to user by country in MailChimp or Mandril" slug: "language-specific-emails-to-user-by-country-in-mailchimp-or-mandril" updated: 2019-09-03T19:28:48Z published: 2019-09-03T19:28:48Z canonical: "docs.viewlift.com/language-specific-emails-to-user-by-country-in-mailchimp-or-mandril" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.viewlift.com/llms.txt > Use this file to discover all available pages before exploring further. # Language specific emails to user by country in MailChimp or Mandril To send users different email based on language 1. Code the email template with conditions around variable "subscription.countrycode" and send separate lannguage emails based on the country user came from. Example code to this folows ``` {{#if `subscription.countrycode == "DK"`}}
Hej{{#if `user.name == "null"`}}{{elseif `user.name == ""`}}{{else}} {{user.name}}{{/if}},
YOUR MESSAGE
{{elseif `subscription.countrycode == "DE"`}}Hallo{{#if `user.name == "null"`}}{{elseif `user.name == ""`}}{{else}} {{user.name}}{{/if}},
YOUR MESSAGE
{{else}}Hello{{#if `user.name == "null"`}}{{elseif `user.name == ""`}}{{else}} {{user.name}}{{/if}},
YOUR MESSAGE
{{/if}} ```