# Sales Invoice Emails

**URL:** <https://forum.manager.io/t/sales-invoice-emails/64183>\
**Category:** Uncategorized\
**Created:** [July 27, 2025, 4:13am UTC](https://forum.manager.io/t/sales-invoice-emails/64183 "2025-07-27T04:13:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AS\_Grya](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/as_grya/32/56046_2.png) [@AS\_Grya](https://forum.manager.io/u/AS_Grya)\
**Post date:** [July 27, 2025, 4:13am UTC](https://forum.manager.io/t/sales-invoice-emails/64183/1 "2025-07-27T04:13:45Z")

</div>

Hi,

Looking for help related to invoice email fields and delivery.

When email delivered it doesn’t pickup the fields data.  
Also, it gone to Spam folder. I am using Gmail smtp here.

Anyone know how to fix fields data and delivery issue?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/4/4/44d05efc62d2cf7def246d028f709d2bd3187211.png)

Thank you 😊

---

<div class="post-metadata">

**Author:** ![AS\_Grya](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/as_grya/32/56046_2.png) [@AS\_Grya](https://forum.manager.io/u/AS_Grya)\
**Post date:** [July 29, 2025, 7:57am UTC](https://forum.manager.io/t/sales-invoice-emails/64183/2 "2025-07-29T07:57:00Z")

</div>

Anyone please help me on this?

---

<div class="post-metadata">

**Author:** ![Eljay59](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/eljay59/32/63156_2.png) [@Eljay59](https://forum.manager.io/u/Eljay59)\
**Post date:** [August 22, 2025, 9:55am UTC](https://forum.manager.io/t/sales-invoice-emails/64183/3 "2025-08-22T09:55:48Z")

</div>

I expect that the emails are going to SPAM folder because of the settings in the receiving email client rather than anything to do with Manager.

I am also having the same issue with placeholder/merge fields in email not being replaced with relevant data and just being sent in the email as text. Other programs I’ve used use the { } as indicators of a merge variable and some programs need those braces manually typed - ie can’t just COPY/PASTE the {variable}, but that doesn’t seem to be the case in Manager. I also can’t find anything regarding how to use them in the Forum or Guides.

If anyone can help, it would be greatly appreciated. Email templates are not quite useless without automatic replacement of placeholders, but they’re not far off useless either.

Thanks

---

<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:** [August 22, 2025, 12:41pm UTC](https://forum.manager.io/t/sales-invoice-emails/64183/4 "2025-08-22T12:41:02Z")

</div>

Hello @AS_Grya,

Welcome to the forum @Eljay59,

`Email Templates` are written in Shopify Liquid templating language.

The wrappers for field names are double curly braces, i.e. `{{fieldname}}`.

Also, the field names used here are incorrect.

> [@AS\_Grya](#):
>
> ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/4/4/44d05efc62d2cf7def246d028f709d2bd3187211.png)

The field name for Customer name is `{{recipient.name}}`.

To get the Due date loaded into `{{dueDate}}`, you have this code:

```auto
{% for field in fields %} 
   {% if field.label == 'Due date' %}
      {% capture dueDate %}
         {{ field.text }}
      {% endcapture %}
   {% endif %}
{% endfor %}

```

To get the balance due loaded into `{{balance}}`, you have this code:

```auto
{% for total in table.totals %} 
   {% if forloop.last == true and total.label == 'Balance due' %}
      {% capture balance %}
         {{ total.number }}
      {% endcapture %}
   {% endif %}
{% endfor %}

```

---

<div class="post-metadata">

**Author:** ![Eljay59](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/eljay59/32/63156_2.png) [@Eljay59](https://forum.manager.io/u/Eljay59)\
**Post date:** [August 26, 2025, 5:32am UTC](https://forum.manager.io/t/sales-invoice-emails/64183/5 "2025-08-26T05:32:33Z")

</div>

Thanks for that.  
Are there any instructions anywhere about where that code should be written?

EDIT:

I think I have it figured out

Thanks

---

<div class="post-metadata">

**Author:** ![Ahmad\_Khoiron](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ahmad_khoiron/32/44324_2.png) [@Ahmad\_Khoiron](https://forum.manager.io/u/Ahmad_Khoiron)\
**Post date:** [August 26, 2025, 9:26am UTC](https://forum.manager.io/t/sales-invoice-emails/64183/6 "2025-08-26T09:26:51Z")

</div>

Copy paste in the Subject  
Invoice no. {{reference}} for {{ recipient.name }}

Copy paste in the email Body

=================  
{% for total in table.totals %}  
{% if total.label == “Total” %}  
{% capture invoice\_total %}{{ total.text }}{% endcapture %}  
{% endif %}  
{% endfor %}

{% for field in fields %}  
{% if field.label == “Due date” %}  
{% capture due\_date %}{{ field.text }}{% endcapture %}  
{% endif %}  
{% endfor %}

Dear {{ recipient.name }},

Invoice no. {{ reference }} for total: {{ invoice\_total }} due date {{due\_date}}.

===========================================

Hope this will help

---

<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 15, 2026, 6:09pm UTC](https://forum.manager.io/t/sales-invoice-emails/64183/7 "2026-07-15T18:09:35Z")

</div>

A post was merged into an existing topic: [Email template variables not working](https://forum.manager.io/t/email-template-variables-not-working/66769/68)
