Adjust email message contents
- 8 Min.
At the center of each email template in Document Output is a Business Central document such as a purchase order, statement or shipment notice. Email templates accompany these documents with email messages, extra file attachments and options for applying style and formatting. This unit focuses on the contents of the email message itself, and the following unit focuses on options for file attachments.
You set up the contents and format of email messages in the HTML email templates, which are a combination of fixed text parts and merge fields that link to sources within Business Central, such as:
- customer and vendor cards
- company information
- users' contact information
- template email signatures
- template tables of merge fields
View an HTML email template
From the menu for Document Output > Setup > Template Setup > Email Templates.
Choose the E-Mail Template Card for the associated Business Central document.
Then, in the E-Mail Template Lines section, in the E-Mail Template action menu, select Edit HTML Template.
- A merge field in the subject line for the document number, labeled A.
- A merge field in the salutation at the beginning of the email body text, labeled B.
- A merge field for the default signature at the end of the email body text, labeled C.
Add merge fields into an HTML email template
To add a merge field into the subject line or email body text, type the percent sign (%), and then select from the list of available merge fields shown in the Merge Fields FactBox. In the email body text, you can also use the Insert merge item tool, which will open the list of merge fields, tables and signatures to select from.
Note
It’s important to save the email template after all updates to the HTML email template, because this page does not automatically save when you navigate away.
Add or change email signatures
Document Output is set up with two template email signatures:
- The default signature, which includes many standard signature elements such as name, role, and contact details.
- The advertise signature, which is intended for temporary messages and banners.
An HTML email template typically includes both signatures, which are included in the email body as the merge fields. You can view and adjust the content of email signatures from the Signatures FactBox.
You can also access the E-Mail Signatures setup page through the Document Output > Setup menu, where you can add more email signatures to suit the needs of your business.
Default signature
The content of the default signature is almost entirely merge fields that link to your own company information and the contact information of related users, such as salespeople. These merge fields allow you to ensure a shared signature style, even when Document Output sends emails on behalf of different users in different locations.
From the E-Mail Signature Card, you can look up current and available merge fields in the Merge Fields FactBox.
Use the Insert merge item action, or begin typing with the percent sign (%) to insert one of the available merge fields.
Advertise signature
The advertise signature is useful as a banner for promotional or seasonal events. The Start Date and End Date options allow you to create multiple advertise signatures and schedule these for a later start date and transition between different versions.
If you set up a default advertise signature template without dates specified, you can display a banner during periods when no special events need to be promoted. Alternatively, you can leave this default advertise signature template without content, so that no banner appears in emails outside of the start and end dates of the other advertise signatures.
Make additional merge fields available
Document Output includes the most commonly used merge fields for each document type. However, sometimes companies need additional merge fields to be available for inclusion in email templates. You can make additional merge fields available, including text, hyperlinks, links to email address or images that are already somewhere on Business Central.
In the email template card, the General FastTab has an option to open the list of merge fields by selecting the number at No. of Merge Fields.
In the E-Mail Template Merge Field list, the option at Get Field From allows you to link from Business Central tables, contacts, code units, and many other sources. When these sources are updated in their original location, the merge fields automatically generate the updated information in the email templates.
Scenario
In this scenario video, Ester from Cronus starts by editing the email template for statements.
Ester needs to work on these tasks:
- Adjust the format of the email text
- Make changes to the merge fields used in the email
- Edit the email signature
- Add a promotional banner below the signature with a limited time period
More learning resources for this topic include:
- Creating Email Signatures (Continia Docs article)
- Setting Up Email Signatures (Continia Docs article)