- Print
- PDF
Set Up an Email Account
Within the Lasernet solution, there are two places where you need to add an email account to be able to send an email.
If you have a BC version older than 18.0, follow steps 1 - 4. If you have a newer version, go to step 5.
Within BC, search for SMTP and open the SMTP Mail Setup menu.
Type in the relevant information.
From the top menu, select Test Email Setup and follow the instructions to send a test email.
When done, you can use this email function:
Note
With this email function, Lasernet will create the PDF, and BC will send the email with the Lasernet PDF attached.
Within BC, search for email and open the Set Up Email menu.
Click Next.
Select Use SMTP to send emails and click Next.
Type in the relevant information.
Select Send Test Email and follow the instructions to send a test email.
When done, you can use the following email function.
The next step is to open the Lasernet Configuration, so please open the Lasernet Developer and then the configuration.
Select Modules from the Tools menu and then open up the email output module.
Type in the relevant information. It makes sense to use the same settings as the ones from BC.
Now, you can use the email function.
Email Placeholders and Email Templates
Within the Lasernet BC Connector, you can specify your own email body and subject in different languages and use placeholders as variable fields/words in your email template to personalize the email for your customer or vendor.
Placeholders
To set the email templates, you will first need to specify your placeholders. Placeholders are fields from a table that you want to use in your email template, like Customer Name, Document Number, or Username. Placeholders are a build that provides just one record rather than multiple. For example, you can use fields from Header tables and not Lines. If you want a date from a Line, you can select an option to receive either the first or final record. This means that you still only receive one record/field that you can use within your email templates.
To use placeholders successfully, follow these steps:
Locate and open Placeholder Sets.
If no records appear, click the Suggest Placeholders button on the top menu.
Select a record that matches the report you wish to customize for the email subject and body. SALESHEADER is used for many reports, like Salesorder, PickInstruction, Workorder, Proforma, and Draft Invoice.
On the top menu, click Manage, then Edit.
The top table (Sales Header) is already added to the Tables section.
If you need to use data from Sales Header, add it to the table. Go to step 13.
If you need to use data as variable fields in your email subject or body, click Manage, then Add.
On the new record, select the … (three dots) button in the Table No. column.
Select the table from the list. You can use the search function on the top menu to locate it.
The next step is to create a connection between two tables. It must be a unique key in order to filter the exact record and not retrieve too many records. If the key fields have already been identified for the table added, then it is only necessary to define the Field No or Filter value on the header table.
Change the Filter Type to Filter String (Placeholders).
Three Filter Type options are available:
Field Value: Select a Field from a table
Filter String: Type in a manual Filter
Filter String (Placeholders): Use a System Field as Filter
With the Field No./Filter Value column, click the … (three dots) button.
Select Current User Security ID from the list and click OK. Then, filter the BC users for the email.
Add the fields from the User Table by clicking Manage, then Add. These buttons are located under the Entries section.
On the new record, select the … (three dots) button in the Field No. column.
Select the field that you wish to use in your email template.
Continue to add all the fields you want to use from the User Table. Once you are finished, close the Placeholder Set form.
In the overview, you can see all the fields from the set.
Email Templates
The next step is to create your email template. You can use and import a HTML email or create your own with our tool. You can also ensure that customers and vendors get the correct email in their desired language.
Locate and open Email Templates. If you do not see any records, click the Suggest Email Templates button on the top menu.
You have the option to either select a record from the list or create your own by clicking Modify or New on the top menu.
We have created an email template that includes all languages. The default language is English. If you want to change it, select the wanted report and choose Modify.
If you wish to add a new language, select New at the bottom of the drop-down menu.
In this guide, we choose to create a new record. To do so, click New.
From the Document Type drop-down list, select Sales Order.
This guide will use the Danish language as an example. To produce a Danish language email, type DAN in the Language Code column and fill out the Name and Description as well. Enable Active checkbox.
On the top menu, click Modify.
Define a Placeholder Set by clicking SALESHEADER within the Placeholder Set Code.
The Placeholder Fields should now appear at the bottom of the screen.
Enter the text for the email subject.
If you require a field like the document number, select it from Placeholders list and then click the Placeholder to Subject button.
Enter the email content and add the placeholders to the template. To add a placeholder, select the placeholder at the bottom of the screen and then click the Place to Body button.
Close the email template form and apply the same process to the other languages you want to use.
In this example, an email template has been created for Danish customers. Customers using different language codes will receive an English language email, as this is the default setting.