How to Attach PDF in Magento 2 Sales Emails?

Customer-store communication is a thing that often determines whether customers will turn into regular buyers. So once you configure the sales emails in your store and customize email templates, there is only one thing left. You should also think about attaching PDF files to transactional emails. 

It makes it easier for customers to find all order-related information and reduces the workload for managers who usually send these documents separately. 

In this guide, you'll learn how to attach PDF files to sales emails in Magento. No code editing. You simply need the Magento 2 Email Attachments extension.

To attach PDF files to emails in Magento: 

1. Navigate to Stores > Configuration > Magefan Extensions > Email Attachments and start configuring the file attachments.

2. Choose whether to Attach Order, Invoice, Shipment and Credit Memo PDFs by enabling a corresponding option. The extension will generate these files while sending emails. 

3. Enable the Attach Terms and Conditions PDF option if you want to attach a terms and conditions file with each translational email. 

attach pdf to emails magento

4. Upload the Terms and Conditions file at the bottom of the configuration section.

attach terms and conditions in magento emails

Once you Save the settings, you can check how the attachments work by placing the order and creating an invoice, shipment and credit memo. 

This is how the Magento file attachments will look in the email box:

magento 2 file attachments

If you attach PDF files customers can download directly from an email, you help them keep all purchase information at hand. It also makes the billing documents easier to find.