Email Templates

This page describes the email body interface: its buttons, the available data fields and the editor.

  • When a form (e.g. a Customer Invoice) is emailed from Output (button), both the email subject line and body can be auto-filled from an email template (see Output Button).
  • The email body (Edit Email Body) and the email stationery (the Email Stationery setting in General Settings and User Settings) are edited in the same HTML editor as email messages (see Email Edit View).

Email Body Interface

Navigation Example

Main Menu > Setup > Output Templates > Right-click an entry > Edit Email Body

Email body interface on the Editor tab, with the data fields list, the editor section and the buttons
Email Body: Editor (tab)

Buttons Explained

Button Description
ArrowsNavigates to the next or previous email template.
TemplateInserts a blank HTML page at the cursor, on the Code tab.
Format

Formats the HTML. A dropdown list with these options:

  • Format by line: Puts each block tag (for example, p, div, table, tr, td and li) on its own indented line. Comments, <pre>, <style> and merge fields are not changed.
  • Wrap on width: Wraps long lines at the window width, on the screen only (the HTML is not changed).

Before Ver 2.6.0, the button was shown only on the HTML interface.

Editor (tab)

The WYSIWYG interface: enter and format the email body, using the toolbar (see Editor Section).

The editor opens on this tab.

Code (tab)

The HTML interface: shows the HTML of the email body.

Before Ver 2.6.0, an HTML button toggled between the WYSIWYG and HTML interfaces.

SaveSaves any changes.
CloseCloses the popup.

Available Data Fields

[Fields] Description
addressThe delivery (Deliver To) address that is on the transaction.
address_billingThe billing (Bill To) address that is on the transaction.
address_codeThe description of the delivery (Deliver To) address that is on the transaction.
address_code_billingThe description of the billing (Bill To) address that is on the transaction.
asset_idThe system-generated number for the asset.
assign_to_knownasThe familiar name of the user to whom the transaction is assigned.
assign_to_nameThe full name of the user to whom the transaction is assigned.
attachmentsInserts a link to the attachment.
categoryThe customer’s or supplier’s category.
company_knownasThe customer’s or supplier’s trading name.
company_nameThe customer’s or supplier’s full name.
company_vat_noThe customer’s or supplier’s VAT number.
contact_id_assignThe system-generated number for the user the transaction is assigned to (on the list of contacts).
contact_id_entityThe system-generated number for the entity the transaction is assigned to (on the list of contacts).
contact_id_personThe system-generated number for the person the transaction is assigned to (on the list of contacts).
contact_id_repThe system-generated number for the rep the transaction is assigned to (on the list of contacts).
contact_knownasThe familiar name of the contact person on the transaction.
contact_nameThe full name of the contact person on the transaction.
created_fromThe name of the source document if the transaction was copied.
credit_termThe credit terms of the customer or supplier.
currencyThe transaction’s currency.
date_dueThe due date on the transaction. If the date captions were customised, this field may hold a different date.
date_expiresThe expiry date on the transaction. If the date captions were customised, this field may hold a different date.
date_periodThe accounting period in which the transaction falls.
date_transThe date of the transaction.
deposit_amtThe deposit amount that must be paid.
deposit_percentThe deposit percentage that must be paid.
descriptionThe description on the transaction.
entityThe brief description of the entity that the transaction belongs to.
entity_idThe system-generated number for the entity on the transaction.
entity_registeredThe registered entity that the transaction is linked to (Entity (Reg)).
flow_idThe system-generated number for the transaction flow (the sequence of transactions that were copied from each other).
gp_amtThe gross profit amount.
gp_percentThe gross profit percentage.
lang_nameThe transaction’s language.
location_fromThe Location From on the transaction (e.g. for an inventory transfer).
location_toThe Location To on the transaction (e.g. for an inventory transfer).
noteThe note on the transaction.
order_noThe order number.
project_idThe system-generated number for the project.
rep_knownasThe familiar name of the rep listed on the transaction.
rep_nameThe full name of the rep listed on the transaction.
roe_currency_to_localThe rate of exchange from the transaction currency to the local currency.
roe_local_to_currencyThe rate of exchange from the local currency to the transaction currency.
statusThe status of the transaction.
status_group_idThe number of the Status Group (Pending, Active, Complete or Cancelled) to which the transaction’s status belongs.
status_noteThe transaction’s status note.
totalThe transaction’s total.
total_costThe total cost of the transaction (for internal purposes).
total_curThe VAT-exclusive total in the transaction’s currency in numbers.
total_cur_textThe VAT-exclusive total in the transaction’s currency in words.
total_fixed_costThe total fixed cost on the transaction (for internal purposes).
total_outThe outstanding amount (the VAT-inclusive total less any allocations) in the local currency.
total_out_curThe outstanding amount (the VAT-inclusive total less any allocations) in the transaction currency.
total_textThe transaction’s total in words.
total_vatThe VAT-inclusive total in the local currency.
total_vat_curThe VAT-inclusive total in the transaction currency in numbers.
total_vat_cur_textThe VAT-inclusive total in the transaction currency in words.
total_vat_textThe VAT-inclusive total in the local currency in words.
trans_header_idThe system-generated number for the transaction.
trans_header_id_fromThe system-generated number for the source transaction (if the transaction was copied).
trans_no

The transaction number.

If the transaction has a text transaction number, it appears instead.

trans_no_versionThe transaction’s number (or text transaction number) and version number.
trans_setup_idThe system-generated number for the Transaction Type.
trans_ver_noThe transaction’s version number.
user_emailThe email address of the user who is sending the email.
user_first_namesThe first names of the user who is sending the email.
user_full_nameThe full names of the user who is sending the email.
user_mobileThe mobile phone number of the user who is sending the email.
user_positionThe position of the user who is sending the email.
user_stationery

The email stationery (e.g. a signature) of the user who is sending the email: the user’s own Email Stationery user setting, or the Email Stationery general setting if the user has none.

Not available when you edit the Email Stationery settings themselves.

user_surnameThe surname of the user who is sending the email.
user_telThe work phone number of the user who is sending the email.
userupdatedThe name of the user who last updated the transaction.
vatThe VAT amount in the local currency.
vat_curThe VAT amount in the transaction’s currency.
wht_totalThe transaction’s total withholding tax (WHT) amount.
wht_total_1The WHT amount for WHT Section Wages 40(1).
wht_total_2The WHT amount for WHT Section Commissions 40(2).
wht_total_3The WHT amount for WHT Section Royalties 40(3).
wht_total_4The WHT amount for WHT Section Interest & Dividends 40(4).
wht_total_5The WHT amount for WHT Section Rent & Services 40(5).
wht_total_6The WHT amount for WHT Section Other Services 40(6).
wht_total_textThe transaction’s total WHT amount in Thai words.

Editor Section

  • The editor is a text and HTML editor. You can enter any information in it.
  • The toolbar has the font, size, bold, italic, underline, strikeout, text colour, alignment, lists, indent, hyperlink, and undo and redo. When the editor opens, it shows the font of the General Settings General > Default - Font name for HTML (Calibri by default) and General > Default - Font size for HTML (9 by default). Saved stationery and email bodies are not changed until they are edited.
  • Double-click a field on the side to add it to the text. On the Editor tab, a field (for example, [trans_no]) is inserted at the cursor.
  • Opening the editor does not change the HTML. The HTML is saved only after an edit on the Editor tab, which saves the whole body again as inline-styled HTML. Merge fields, the attachment links (shown as [[Links Start]] / [[Links End]]), the <head> and <style> and each picture’s address are kept exactly.
  • The editor has no table tools. Tables already in the HTML are kept, and their text can be edited; change the table layout on the Code tab.
  • Added fields can be moved using cut and paste (Ctrl + X / Ctrl + V).
  • Fields can be deleted with the Backspace key.

Code (tab):

Email body interface on the Code tab, showing the HTML of the email body
Email Body: Code (tab)

Report an issue with this page

For more useful feedback, select the text on the page you are reporting on, then click Feedback again — or continue without selecting anything.