> For the complete documentation index, see [llms.txt](https://docs.meta-inf.hu/email-this-issue/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meta-inf.hu/email-this-issue/faq/email-this-issue-for-jira-cloud-how-to-add-custom-macro-to-email-template.md).

# How-to add custom macro to email Template?

1\. Open an email template (***Email this Issue settings / Outgoing emails / Templates / Your template / Edit***)

2\. Go to the "***HTML Template***" editor.

![](/files/-Mf8I46uOYGP0pJzpo7A)

3\. Click on the "***Open raw HTML editor***" and insert your Velocity code at the top of the HTML code between `<!--` and `-->`&#x20;

4\. Ckick **Apply** and **Save**.

![](/files/-Mf8I46xXRFpOYr1Np2q)

{% hint style="success" %}
Result: If the code is okay, you can use the macro in your email template.
{% endhint %}
