# Email Template

**URL:** <https://forum.manager.io/t/email-template/36298>\
**Category:** Uncategorized\
**Created:** [July 28, 2021, 5:24pm UTC](https://forum.manager.io/t/email-template/36298 "2021-07-28T17:24:56Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alan1351](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alan1351](https://forum.manager.io/u/Alan1351)\
**Post date:** [July 28, 2021, 5:24pm UTC](https://forum.manager.io/t/email-template/36298/1 "2021-07-28T17:24:56Z")

</div>

I am only just getting around to setting up email for my sales invoices and I’m sorry if this question has been answered many times before…

I have seen that I can put {{reference}} in the template title and body but I would also like to be able put in the invoice date, total amount and invoice due date. Something like

```
     Please find attached sales invoice number {{reference}} dated {{issue date}} for£{{invoice total}} due for payment on or before {{due date}} 

```

I have spent the last hour searching the forum and can’t find the answer. Can someone point me in the right direction please.

Thanks  
Alan

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [July 28, 2021, 5:34pm UTC](https://forum.manager.io/t/email-template/36298/2 "2021-07-28T17:34:22Z")

</div>

In general, you need to look at the code for a theme to see how variables are named. Many variables, however, are arrays (including the `totals` variable). So you need to identify which element of the array is to be displayed. And that can change, depending on tax codes, tax inclusivity/exclusivity, discounts offered, rounding options, partial payments received, etc. In my opinion, the effort of adding such obvious information, already available on the invoice itself, is not worth it. Your customer’s accounting department is not going to consider information from the email. They will look at the invoice itself.

---

<div class="post-metadata">

**Author:** ![Alan1351](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alan1351](https://forum.manager.io/u/Alan1351)\
**Post date:** [July 28, 2021, 5:59pm UTC](https://forum.manager.io/t/email-template/36298/3 "2021-07-28T17:59:56Z")

</div>

Fair enough. Thanks for the reply.

Alan

---

<div class="post-metadata">

**Author:** ![VACUUMDOG](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/vacuumdog/32/7101_2.png) [@VACUUMDOG](https://forum.manager.io/u/VACUUMDOG)\
**Post date:** [July 29, 2021, 1:07am UTC](https://forum.manager.io/t/email-template/36298/4 "2021-07-29T01:07:42Z")

</div>

I use this

CompanyX Sales Invoice {{reference}} {{ fields[“Invoice date”] }}

and find that is sufficient for most customers.

---

<div class="post-metadata">

**Author:** ![Alan1351](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alan1351](https://forum.manager.io/u/Alan1351)\
**Post date:** [July 29, 2021, 10:00am UTC](https://forum.manager.io/t/email-template/36298/5 "2021-07-29T10:00:42Z")

</div>

I’m afraid the {{ fields[“Invoice date”] }} part doesn’t work 🙁

---

<div class="post-metadata">

**Author:** ![eko](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@eko](https://forum.manager.io/u/eko)\
**Post date:** [July 29, 2021, 10:27am UTC](https://forum.manager.io/t/email-template/36298/6 "2021-07-29T10:27:48Z")

</div>

Use CompanyX {{ title }} #{{ fields[“Invoice number”] }} {{ fields[“Invoice date”] }}

---

<div class="post-metadata">

**Author:** ![Joe91](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/joe91/32/35781_2.png) [@Joe91](https://forum.manager.io/u/Joe91)\
**Post date:** [July 29, 2021, 10:29am UTC](https://forum.manager.io/t/email-template/36298/7 "2021-07-29T10:29:46Z")

</div>

Looks like the variables are no longer exposed to the email template

---

<div class="post-metadata">

**Author:** ![Alan1351](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alan1351](https://forum.manager.io/u/Alan1351)\
**Post date:** [July 29, 2021, 10:52am UTC](https://forum.manager.io/t/email-template/36298/8 "2021-07-29T10:52:20Z")

</div>

> [@eko](#):
>
> Use CompanyX {{ title }} #{{ fields[“Invoice number”] }} {{ fields[“Invoice date”] }}

Nope. Sorry @eko. That just gives: " Invoice # " in the body of the email.

The only things that work for me are {{reference}} and {{business.name}}

---

<div class="post-metadata">

**Author:** ![eko](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@eko](https://forum.manager.io/u/eko)\
**Post date:** [July 29, 2021, 11:33am UTC](https://forum.manager.io/t/email-template/36298/9 "2021-07-29T11:33:53Z")

</div>

My line should be in the Subject not the body.

---

<div class="post-metadata">

**Author:** ![eko](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@eko](https://forum.manager.io/u/eko)\
**Post date:** [July 29, 2021, 11:36am UTC](https://forum.manager.io/t/email-template/36298/10 "2021-07-29T11:36:26Z")

</div>

In the body using Manager v21.7.52 I use something like:

```auto
Dear {{ recipient.name }},

Please find attached CompanyX {{ title }} #{{ fields["Invoice number"] }}. Please pay the balance of $ {{ table.totals["Balance due"] }} due on {{ fields["Due date"] }} to: 

etc

```

---

<div class="post-metadata">

**Author:** ![Joe91](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/joe91/32/35781_2.png) [@Joe91](https://forum.manager.io/u/Joe91)\
**Post date:** [July 29, 2021, 11:44am UTC](https://forum.manager.io/t/email-template/36298/11 "2021-07-29T11:44:53Z")

</div>

Doesn’t work either

---

<div class="post-metadata">

**Author:** ![Alan1351](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alan1351](https://forum.manager.io/u/Alan1351)\
**Post date:** [July 29, 2021, 11:54am UTC](https://forum.manager.io/t/email-template/36298/12 "2021-07-29T11:54:30Z")

</div>

So far the following field references work for me (destop v.21-7-19)  
{{reference}}  
{{business.name}}  
{{recipient.name}}  
{{title}}

---

<div class="post-metadata">

**Author:** ![Mark](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark](https://forum.manager.io/u/Mark)\
**Post date:** [July 29, 2021, 12:14pm UTC](https://forum.manager.io/t/email-template/36298/13 "2021-07-29T12:14:03Z")

</div>

Searching for Email template renders more than 50 results. Have a look at [this topic](https://forum.manager.io/t/legend-of-liquid-array-for-developing-email-template/11595)

---

<div class="post-metadata">

**Author:** ![Alan1351](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alan1351](https://forum.manager.io/u/Alan1351)\
**Post date:** [July 29, 2021, 1:47pm UTC](https://forum.manager.io/t/email-template/36298/14 "2021-07-29T13:47:37Z")

</div>

Success!!

Thanks @Mark I found @Sharpdrivetek’s post and with a bit of fiddling around I now have the following working. I am not sure how show the HTML code for LTbrGT = break without it activating in this message so I have typed |break| instead.

Greetings {{ recipient.name }} |break| |break|

Please find attached {{business.name}} invoice number {{reference}} dated  
{% for field in fields %}{% if field.label == ‘Invoice date’ %}{{ field.text }}{% endif %}{% endfor %}.  
|break| |break|

The Invoice value is  
{% for total in table.totals %}{% if total.label == ‘Total’ %} **{{ total.text }}** {% endif %}{% endfor %}  
and is due for payment on or before  
{% for field in fields %}{% if field.label == ‘Due date’ %} **{{ field.text }}** {% endif %}{% endfor %}.  
|break| |break|

Thank you |break| |break|  
Alan |break|  
-----------------------------|break|  
Alan Budden|break|  
MyEmailAddress|break|  
MyTelNumber|break|  
----------------------------- |break|

and I have just notice that LTbGT LT/bGT switch bold on and off

---

<div class="post-metadata">

**Author:** ![Alan1351](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alan1351](https://forum.manager.io/u/Alan1351)\
**Post date:** [July 29, 2021, 4:05pm UTC](https://forum.manager.io/t/email-template/36298/16 "2021-07-29T16:05:59Z")

</div>

Magic! “Invoice date” does work. As you say, you just have to be careful to match the case.

So my email template is now:

Greetings {{ recipient.name }}  
`<br><br>`

Please find attached {{ business.name }} invoice number {{ reference }}  
dated {{ fields[“Invoice date”] }}.  
`<br><br>`

The Invoice value is  
{% for total in table.totals %}{% if total.label == ‘Total’ %}`<b>`{{ total.text }}`</b>`  
{% endif %}{% endfor %}  
and is due for payment on or before` <b>` {{ fields[“Due date”] }}`</b>.`  
`<br><br>`

Thank you `<br><br>`  
Alan `<br>`  
-----------------------------` <br>`  
Me` <br>`  
MyEmailAddress` <br>`  
MyTelNumber `<br>`  
-----------------------------` <br>`

---

<div class="post-metadata">

**Author:** ![Alan1351](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Alan1351](https://forum.manager.io/u/Alan1351)\
**Post date:** [July 29, 2021, 7:33pm UTC](https://forum.manager.io/t/email-template/36298/18 "2021-07-29T19:33:28Z")

</div>

Not quite.  
The longer version results in £1,234.00 and the short version gives 1234  
And I think it should be single quotes, ‘Total’  
Thanks for trying

Alan

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [July 5, 2026, 8:19pm UTC](https://forum.manager.io/t/email-template/36298/19 "2026-07-05T20:19:19Z")

</div>

Closed on July 5, 2026, 8:19pm UTC

Uncategorized topics older than 3 years with no recent activity
