# Custom email templates in multiple languages

**URL:** <https://discuss.workflowgen.com/t/custom-email-templates-in-multiple-languages/1682>\
**Category:** Workflow Designer\
**Created:** [August 29, 2020, 11:53pm UTC](https://discuss.workflowgen.com/t/custom-email-templates-in-multiple-languages/1682 "2020-08-29T23:53:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [August 29, 2020, 11:53pm UTC](https://discuss.workflowgen.com/t/custom-email-templates-in-multiple-languages/1682/1 "2020-08-29T23:53:39Z")

</div>

Is it possible to have multiple custom email templates that would send the correct one in the user’s language if it exists. Just like it works for the out of the box templates.

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [August 31, 2020, 7:18pm UTC](https://discuss.workflowgen.com/t/custom-email-templates-in-multiple-languages/1682/2 "2020-08-31T19:18:59Z")

</div>

Hi @ParadimeWeb.

Here is how you can set a template dynamically:

> [@How can I dynamically set an email template for a WorkflowGen notification?](https://discuss.workflowgen.com/t/how-can-i-dynamically-set-an-email-template-for-a-workflowgen-notification/363):
>
> Issue How can I dynamically set an email template for a WorkflowGen notification? Background In a WorkflowGen action notification tab, you can select an email template for each additional notification. You can create as many notifications as required with combination of different templates and conditions. However, you may not want to create the same set of notifications for multiple actions because it will be time consuming. Solution You can predefine the final email template by manipulatin…

To know the language of the current user, you can use this code in the .NET code behind:  
`Request.Form["WFGEN_LANG"].`

Hope this helps,  
Eddy.

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [September 1, 2020, 3:27am UTC](https://discuss.workflowgen.com/t/custom-email-templates-in-multiple-languages/1682/3 "2020-09-01T03:27:06Z")

</div>

Is there a way to do this without code behind? What if the user’s language changes between the time the code is executed and the time the notification is sent out?

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [September 1, 2020, 10:40pm UTC](https://discuss.workflowgen.com/t/custom-email-templates-in-multiple-languages/1682/4 "2020-09-01T22:40:06Z")

</div>

Hi @ParadimeWeb,

You can retrieve the language of the user after the Submit button has been clicked.  
Here is how you can implement this:

> [@Form designer: How to add custom code on the submitButton event in the ASP.NET server side code-behind?](https://discuss.workflowgen.com/t/form-designer-how-to-add-custom-code-on-the-submitbutton-event-in-the-asp-net-server-side-code-behind/247):
>
> // PageLoad protected void Page\_Load(object sender, EventArgs e) { base.Page\_Load(sender, e); submitButton.Click += new EventHandler(MySubmitButton\_Click); } protected void MySubmitButton\_Click(object sender, EventArgs e) { // Your code... // If you modify the form field's value then you have to call the 2 instructions below at the end. // this.SaveFormData(this.FormData, true); // SubmitToWorkflow(); } Note: This custom event will happen after the normal Wor…

Regards,  
Eddy.

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [September 2, 2020, 1:17am UTC](https://discuss.workflowgen.com/t/custom-email-templates-in-multiple-languages/1682/5 "2020-09-02T01:17:03Z")

</div>

In my case, there is no submit, the notification is sent on a Sync Bar after a pause.

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [November 20, 2020, 9:19pm UTC](https://discuss.workflowgen.com/t/custom-email-templates-in-multiple-languages/1682/6 "2020-11-20T21:19:11Z")

</div>

I opened a ticket for this. I was not able to make this work. Please advice if it is possible.
