Home | Sage Tips | How to Send Additional Attachments with Emails from Spindle

How to Send Additional Attachments with Emails from Spindle

October 7, 2026

Discover how to attach additional files when distributing a document via Spindle

When sending emails through Spindle, there may be times where you want to include additional files as attachments.

For example, you might wish to include delivery instructions, a voucher, or a catalogue. Alternatively, you may want to attach invoices with customer statements or credit control letters.

In this Tip of the Week, we show you how to send additional attachments with emails from Spindle.

Keep reading to find out, or watch the short video here to better your understanding.


Attaching additional files

There are two main ways to attach additional files when distributing a document via Spindle.

  1. Against the email settings for a document operation, the File Attachments tab enables you to specify extra files you want to attach to emails. These files are added as separate attachments along with the main document that is being printed to Spindle Document Distribution.
  2. Files can also be attached by embedding specific Spindle ##commands into the main document being sent. For example, to attach the individual Invoices detailed in a Customer Statement.

Attachments tab

Go to the start menu > Spindle Document Distribution Tools.

Within here, go to ‘Document Automation’ and select the document automation that you need to amend (for example ‘Sales Invoices’). Within the operation select ‘Email Settings’.

Please note: If you can not see Email Settings, then this operation has not had email set up as a distribution method. At the operation level, within the distribution tab is where you can find your list of distribution methods.

In the ‘Email Settings’, go to the ‘File Attachments’ tab.

This attachment section lists the files that have been added, and files can be added or removed using the relevant buttons.

The listed files will be attached to the email along with the processed document. Each entry can link directly to a specific file or can be built up using ##commands to identify the file to attach.

Examples include:

\\fileserver\DocumentsCatalogue.pdf

\\fileserver\Documents\##COMPANY##\Delivery Instructions.tif \\fileserver|Documents\Invoices\*.pdf

C:\My Documents\##MONTHL## Voucher.pdf

Wildcards can also be used:

* Wildcard – this will match any sequence of characters.

? Wildcard – this will match a single character.

To add an attachment, select ‘Add’ and browse for a specific file you wish to attach.

Select ‘Open’ and the path to the document will show.

If you want to amend the path and use ##commands to identify an element of the file path, select the path and type the details into the box (as shown in the image).

Options section

Next, in the ‘Options’ section, you choose how you want Spindle to handle emails when one or more attachments do not exist.

In the drop down below ‘If attachments fail’, there are 3 options to choose from:

  • Allow email – This option will allow an email to be distributed regardless of any failed attachments.
  • Place email on hold – This option will prevent an email from being sent out if any of the attachments do not exist. The email will instead be placed in the users drafts folder. Note: Not all email solutions support this feature, therefore emails may be sent out even if this option is ticked.
  • Stop email – This option will prevent an email from being sent out if any of the attachments do not exist. An error will be displayed.

You will see there is also a tick box for ‘Allow email is SDCATTACH command returns no documents’. This setting is only applicable when using ##SDCATTACH commands to attach files to your email.

If this option is ticked, it will stop Spindle Document Distribution from failing the distribution if an ##SDCATTACH command returns no files. If there are no attachments, the email will be sent without attachments.

If this option is unticked, Spindle Document Distribution will fail the distribution if an ##SDCATTACH command returns no files. If there are no attachments, the email will not be sent, and Spindle Document Distribution will display an error.

Once you have configured your attachments, open Sage 200 and generate the invoice.

Next, select ‘Print’, select the printer ‘Spindle Pro Auto‘, and click ‘OK’.

Now when you go to your email drafts folder, it will generate the email for the invoice with the relevant attachments.

Embedding commands to attach documents

In addition to the attachments tab, it is also possible to use specific Spindle ##commands embedded into the source document, so other documents are attached along with it. This is particularly useful if the additional documents relate to details in the main source document being sent.

For example, when sending out a Customer Statement or Credit Control chasing letters, you may want to send copies of the oust standing invoices being detailed.

Depending on where or how the additional documents have been archived/saved will depend on the best ##command to use.

Please note: This type of configuration does require knowledge of the Report Designer for Sage 200 or the system generating your document.

##ATTACH and ##ATTACHDIR

First we will look at the command ##ATTACH. Using Invoices and Statements as an example, if the invoices have been archived/saved into a logical folder structure on a file server, whether using Spindle Document Distribution’s PDF archive functionality, or using any other method or system, they can be attached to the email when the statements are sent out. 

This example shows archived Invoices (using Spindle Archiving) when generating these in Sage 200.

The files are archived to a server location:

\\SCSC-CRAIGT2\Accounts Share\Customers\Craig’s Spindle Co\Invoices

(‘Craigs Spindle Co’ is the customer account name in Sage 200 and ‘0000005058’ is the Sage 200 invoice number)

To attach these files to the Customer Statement generated in Sage 200, the layout needs to be amended to include the required commends for Spindle to read.

Firstly, open the Report Designer and specify the attachment directory in the statement header – this is the location of the folder where attachments are stored.

Add an expression to specify the location and using the appropriate reporting fields where unique details will be required (such as Customer Account Name).

Please note: In Sage 200’s report designer, you need to double any backslashes.

Next, in the Transaction detail section, add another expression for the ##ATTACH command, which references the specific file name you wish to attach.

When creating these expressions, set them to a small font size (2pt) in order to apply them to a small area of the layout where Spindle can still read them. They should also be made White, so they are not visible (in keeping with all Spindle layout commands).

Once applied, when we run the Statement from Sage 200 and send it through Spindle Pro Auto or Spindle Pro, the email distribution will identify the additional attachments and send these within the email containing the statement.

##SDCATTACH command

The SDCATTCH command is similar to the ##ATTACH commands, however it is for use by sites that are looking to attach files previously archived into Spindle Document Capture.

This requires specific search commands on the Sage 200 layout that Spindle Document Capture understands, including DATASETID (usually in the Header section of the layout).

Then at transaction level the SDC Document Type [DT], Linkage Type [LT] and Link Reference [LR]. These will all be specific to how SDC is configured to capture the document being sent as an additional attachment.

To attach Sales Invoices from within SDC to outbound Statements, On the Statement layout you would need to add the following expression at the transaction level (Details section) of the statement:

“##SDCATTACH [DT=Sales Invoice][LT=Customer Transaction][LR Customer Reference=” + SLCustomerAccounts.CustomerAccountNumber +”][LR Transaction Reference=” + SLPostedCustomerTrans.TransactionReference+”][LR Transaction Date=”+SLPostedCustomerTrans.TransactionDate + “][LR Transaction Type=Invoice]##”


If you have any further questions on how to send additional attachments with emails from Spindle or your Sage 200 system, please get in touch with our team.

To stay in the loop with our latest news, make sure you’re following us on LinkedIn and Facebook!   

Written by: Lucy Andrews, Marketing Executive at PKF Smith Cooper Systems

Reviewed by: Craig Taylor, Project Services Director at PKF Smith Cooper Systems

Last updated: September 2026

Share Tip

Request a FREE consultation with our Sage experts, to see how we can drive your business growth.

Or call us on: 01332 959008

General Enquiries

"*" indicates required fields

Existing Customer?

Need support from
our team? Let's
get connected.

PKF SCS Owl Left Facing