Streamline your inbox: how to merge varying email attachments into a single PDF

Turn an email and its Word, Excel and picture attachments into one clean PDF automatically, without logos and signature images.

The Convert all files to a single PDF window: the two steps it adds, What happens to the original files? with Keep them and Delete them, the merged PDF's name {SAVE_PATH}{DATE[yyyy-MM-dd]}_{SUBJECT}_{ID}.pdf and Put the email's text last

How many times have you opened an email, saved three attachments (a Word document, an Excel sheet and a JPEG picture), converted each one and then pieced them together into one file for a report or an archive?

With many emails a day, that is a lot of clicking. Mail Attachment Downloader can do it for you. With PRO Rules Server it turns an email and its attachments, whatever their format, into one merged PDF.

Here is how to set it up in version 4.0, and how to keep logos and signature pictures out of the result.

Why merge emails and attachments?

  • Simpler archives: the email’s text and its files are kept together in one document.
  • Audit and compliance: legal, finance and other teams get a complete record of each email in one file.
  • Easy sharing: send clients or colleagues one document instead of a pile of attachments.

Step 1: Save the email’s text too

For the merged PDF to start with the email itself, the rule must save the email as well as its attachments.

  1. Open the PRO Rules tab. Click New rule…, or select a rule and click Edit. The Rule Editor opens.
  2. Under Which emails, set the conditions, for example From ‘northwind.example’.
  3. Under Save, set What to save to The email and its attachments, and choose the Save folder, for example \\fileserver\Finance\Northwind.

Step 2: Leave out the junk

You don’t want social media icons or a company logo from an email signature in your clean PDF. Two settings under Save take care of that:

  • Leave out the pictures inside the text: the pictures shown inside the email’s text, such as logos and signature images, are not saved. Files attached to the email are still saved.
  • Only files of these types: tick Documents (.doc, .pdf…), and add more types in Other:, such as .xlsx, .csv. Leave Pictures (.jpg, .png, .gif…) unticked if you only want documents. If the types would hold back the email’s own .eml file, the Rule Editor says so and offers Let the email through.

Step 3: Convert everything and merge it

Version 4.0 does the converting and the merging with one choice:

  1. Click Add a step…, choose Files, then Convert all files to a single PDF, and click Add.
  2. Under What happens to the original files?, choose Delete them to keep only the merged PDF, or Keep them to keep the originals and the separate PDFs as well.
  3. Set the File name of the merged PDF, for example {SAVE_PATH}\{DATE[yyyy-MM-dd]}_{SUBJECT}_{ID}.pdf. {SAVE_PATH}\ puts it in the folder the files were saved in, and {ID} keeps each email’s PDF apart.
  4. Click Add steps, then Save.

This adds two steps under Then: Convert documents, which makes a PDF of each saved file and of the email, then Merge PDFs, which joins them. Delete them ticks Delete the originals after converting them and Delete the PDF files merged for you.

The Add a step window on the Files group: Convert documents, Merge PDFs, Convert all files to a single PDF, Split PDF, Make PDFs searchable (OCR) and more
Add a step › Files › Convert all files to a single PDF.
The Convert all files to a single PDF window: the two steps it adds, What happens to the original files? with Keep them and Delete them, the merged PDF's name {SAVE_PATH}\{DATE[yyyy-MM-dd]}_{SUBJECT}_{ID}.pdf and Put the email's text last
Convert all files to a single PDF: one window sets up both steps.

Step 4: Fine-tune the merge (optional)

Select the Merge PDFs step to change it:

  • Merge: choose All the email’s PDF files (across rules), The PDF files this rule saved so far, or Each PDF file with the email converted to PDF (one PDF per attachment, each with the email in front).
  • Put the email’s text last moves the email to the end.
  • File name: click Fields… to build the name from the sender, the date, the subject or any field.

In the Convert documents step, tick Ignore failures (when several types are converted) so that one file that can’t be converted doesn’t stop the rest.

The Merge PDFs step in the Rule Editor: Merge set to All the email's PDF files, a file name in the save folder with the date, subject and ID, and Delete the PDF files merged
The Merge PDFs step: what is merged and what the merged file is called.

The result

Once the rule runs, the program does the rest. When an email matches, it leaves out the junk, converts the files, and builds the document. Run it on a schedule, as new email arrives, or as a Windows service with nobody signed in.

Your folder gets one PDF for each email. The first pages show the email, and the attachments follow, rendered as PDF pages.

Before you turn it on, click Test this rule… on the PRO Rules tab to try it on a few emails. Nothing is changed.

Merge several emails into one PDF

Leave {ID} out and give the merged PDF a name that several emails share, and their pages go into the same file, one email after the other. For example, {SAVE_PATH}\{PROCESSED_DATE_LOCAL[yyyy-MM-dd]}_Northwind.pdf gives one PDF for the day’s Northwind emails.

This works within one download. A merged PDF left by an earlier download is replaced, not added to, so the same emails always give the same PDF. If the rule runs more than once a day, put the hour in the name too, such as [yyyy-MM-dd_HH], and choose Keep them so the separate files stay as well.

Going beyond PDF

  • Password: tick Encrypt the PDF in a conversion to protect sensitive files.
  • Other formats: PRO Rules Server converts to more than 50 formats, including multi-page TIFF, HTML and JPEG. See Convert emails to PDF or TIFF.
  • Scans: Make PDFs searchable (OCR) and Split PDF handle scanned batches.
  • Old mail: with PRO Backup, the Backup tab exports kept emails to PDF without a rule. See Export.

Try it: download Mail Attachment Downloader and start with the free edition, or compare the PRO editions, each with a 30-day money-back guarantee.

Related

Using version 3.x? See the 3.x version of this guide.

Contact us with any questions or suggestions about this post.