pdfMachine merge
Purchase
Download
Main pdfMachine merge page
Multiple line items in an email
Consecutive rows in the data source file that have the same email address can be "bundled" together and only one email is sent per bundle.
This is often the case when producing data from database queries.
An example use is sending out invoices to clients. Lets say you have a data source file containing line items such as:
With bundling enabled, only 3 emails will be sent, otherwise 10 emails will
be sent.
When it comes to substituting merge tags with data, tags may have a number appended to them to identify which row to use in the group of rows with the same email.
e.g.
{{item}} - the last item in the bundle
{{item1}} - the first item in the bundle
{{item2}} - the second item in the bundle
...
{{itemN}} - the Nth item in the bundle
Note: If there are a variable number of rows per email address in the data source file,
and you want to create tables with a variable numbers of rows, we recommend
using HTML templates with
Liquid templating language and/or
Javascript.
If you need help or more information on this feature please contact