Why Your PDF Invoices Aren't Attaching to WooCommerce Emails (And How to Fix It)
Content
One of the most common issues reported by users of the 'PDF Invoices & Packing Slips for WooCommerce' plugin is that PDFs generate correctly but fail to attach to outgoing order emails. This can be a frustrating problem for store owners who rely on automated invoicing.
Based on extensive community discussion and troubleshooting, here are the most frequent causes and their solutions.
1. Third-Party Email Service Restrictions
This is, by far, the most common culprit. Many popular email services like MailPoet, Brevo (Sendinblue), Sendgrid, and others have strict policies or technical limitations regarding email attachments.
- The Problem: Your SMTP or email marketing service may block attachments entirely, have a strict file size limit, or strip attachments during processing.
- How to Check: Review your service's documentation for their rules on attachments. Test by sending an email to a Gmail or Outlook address instead of through your third-party service.
- The Solution: Contact your email service's support to confirm if they allow attachments. You may need to switch to a different SMTP service or use your web host's default mail server.
2. File Permission Errors
The plugin needs to create and store temporary PDF files in a folder within your WordPress uploads directory before it can attach them to an email.
- The Problem: If this temporary folder does not have the correct write permissions, the PDF cannot be created, and therefore, cannot be attached. You may see a specific error in the plugin's settings about the temp directory.
- The Solution: Use your hosting control panel's file manager or an FTP client to navigate to
/wp-content/uploads/. Find the plugin's temp folder (it looks likewpo_wcpdf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) and set its permissions to 755. If the folder doesn't exist, check that the mainuploadsfolder is writable.
3. Incorrect "Attach To" Settings
The plugin must be explicitly told which WooCommerce emails to attach the PDF to. This is a common source of confusion.
- The Problem: A customer expects an invoice with their "Order on-hold" email, but the plugin is only set to attach to "Completed order" emails.
- How to Check: Go to WooCommerce > PDF Invoices > Documents > Invoice and look at the "Attach to:" setting. Ensure the correct email notifications are checked for your needs.
- The Solution: Select the specific WooCommerce email notifications (e.g., "Processing order," "Completed order") that should include the invoice attachment. Remember, the invoice number is generated when the document is first created, so attaching to "New order" will generate it immediately upon checkout.
4. Plugin or Theme Conflicts
Another plugin, or sometimes your theme, can interfere with how WooCommerce sends emails or how the PDF plugin creates attachments.
- The Problem: The issue started after installing a new plugin or updating your theme. Emails might send but without the PDF, or you might see critical errors in your WooCommerce logs.
- How to Check: Follow a standard conflict test:
- Switch your theme to a default WordPress theme like Twenty Twenty-Four.
- Deactivate all plugins except for WooCommerce and 'PDF Invoices & Packing Slips'.
- Test if the invoice attaches to an email. If it works, reactivate your plugins one-by-one, testing after each, to find the culprit.
- The Solution: If you identify a conflicting plugin, check its settings for any options related to email attachments or WooCommerce emails. If no setting resolves it, you may need to contact the conflicting plugin's developers for support or look for an alternative.
5. Email-Specific Issues (e.g., Hotmail/Outlook)
Some email providers, notably Hotmail and Outlook, have aggressive security filters that can sometimes corrupt emails with attachments or mark them as spam.
- The Problem: Emails with attachments sent to @hotmail.com or @outlook.com addresses arrive blank or cannot load the PDF.
- The Solution: This is often a provider-specific issue. Test by sending the email to a different email provider (like Gmail) to confirm the attachment works elsewhere. There may be little you can do on your end besides ensuring your domain's SPF and DKIM records are properly set up to improve email deliverability.
Summary: Your Troubleshooting Checklist
- Test with a different email service: Rule out third-party service restrictions first.
- Verify folder permissions: Ensure the plugin's temp directory is writable.
- Double-check your settings: Confirm the PDF is set to attach to the correct WooCommerce email notifications.
- Perform a conflict test: Rule out other plugins or your theme causing the issue.
- Check your logs: Look for errors in WooCommerce > Status > Logs that might point to a specific cause.
By methodically working through these common issues, you can almost always identify and resolve why your PDF invoices are not being sent with your WooCommerce order emails.
Related Support Threads Support
-
Woo emails with attached PDF failhttps://wordpress.org/support/topic/woo-emails-with-attached-pdf-fail/
-
Order motivation stoped workinghttps://wordpress.org/support/topic/order-motivation-stoped-working/
-
Issues sending orders to @hotmail.com email addresseshttps://wordpress.org/support/topic/issues-sending-orders-to-hotmail-com-email-addresses/
-
A quarter of orders missing PDF invoiceshttps://wordpress.org/support/topic/a-quarter-of-orders-missing-pdf-invoices/
-
PDF documents not sent in the woocommerce emailshttps://wordpress.org/support/topic/pdf-documents-not-sent-in-the-woocommerce-emails/
-
Plugin throws some critical errors and is not attaching PDFs to the emailshttps://wordpress.org/support/topic/plugin-throws-some-critical-errors-and-is-not-attaching-pdfs-to-the-emails/
-
Second PDF not sending on Order Completehttps://wordpress.org/support/topic/second-pdf-not-sending-on-order-complete/
-
Plugin not attaching the invoice to the Order Finalized email anymorehttps://wordpress.org/support/topic/plugin-not-attaching-the-invoice-to-the-order-finalized-email-anymore/
-
Blank page with -1 when sending emailhttps://wordpress.org/support/topic/blank-page-with-1-when-sending-email/
-
PDF invoices not attached to email to clienthttps://wordpress.org/support/topic/pdf-invoices-not-attached-to-email-to-client/
-
Send receipt documenthttps://wordpress.org/support/topic/send-receipt-document/
-
Problem with attachment in mailhttps://wordpress.org/support/topic/problem-with-attachment-in-mail/
-
For attachinghttps://wordpress.org/support/topic/for-attaching/
-
Invoices are not always attached to emailhttps://wordpress.org/support/topic/invoices-are-not-always-attached-to-email/
-
PDF not attached to email.https://wordpress.org/support/topic/pdf-not-attached-to-email-2/
-
Attachment not senthttps://wordpress.org/support/topic/attachment-not-sent/
-
PDF invoice not attached as activated MailPoet pluginhttps://wordpress.org/support/topic/pdf-invoice-not-attached-as-activated-mailpoet-plugin/
-
PDF are still attached to orders even though its set to not do thathttps://wordpress.org/support/topic/pdf-are-still-attached-to-orders-even-though-its-set-to-not-do-that/
-
invoice is not creating on order complete nor sending it with emailhttps://wordpress.org/support/topic/invoice-is-not-creating-on-order-complete-nor-sending-it-with-email/
-
Duplicate Emails for Ordershttps://wordpress.org/support/topic/duplicate-emails-for-orders/
-
PDF Invoices & Packing Slips for WooCommercehttps://wordpress.org/support/topic/pdf-invoices-packing-slips-for-woocommerce-2/
-
Not generating PDF attachement to emailhttps://wordpress.org/support/topic/not-generating-pdf-attachement-to-email/
-
issue with the PDF Invoices not attachmenthttps://wordpress.org/support/topic/issue-with-the-pdf-invoices-not-attachment/
-
PDF invoice is not attached to the order emailhttps://wordpress.org/support/topic/pdf-invoice-is-not-attached-to-the-order-email/
-
Invoices PDFs don’t get attached to emails and “200: parsererror”https://wordpress.org/support/topic/invoices-pdfs-dont-get-attached-to-emails-and-200-parsererror/
-
I am not receiving order invoice when I place an orderhttps://wordpress.org/support/topic/i-am-not-receiving-order-invoice-when-i-place-an-order/
-
WordPress still sends the old emailhttps://wordpress.org/support/topic/wordpress-still-sends-the-old-email/
-
PDF invoice not found.https://wordpress.org/support/topic/pdf-invoice-not-found-2/
-
Attachments not being senthttps://wordpress.org/support/topic/attachments-not-being-sent-3/
-
No setting for “New subscription renewal orde” emailhttps://wordpress.org/support/topic/no-setting-for-new-subscription-renewal-orde-email/
-
WordPress still sends the old email part2https://wordpress.org/support/topic/wordpress-still-sends-the-old-email-part2/
-
PDF invoice not attachedhttps://wordpress.org/support/topic/pdf-invoice-not-attached/
-
PDF Invoices Not Attaching to Emailshttps://wordpress.org/support/topic/pdf-invoices-not-attaching-to-emails-2/
-
Attach pdf invoice to email only with certain payment methodshttps://wordpress.org/support/topic/attach-pdf-invoice-to-email-only-with-certain-payment-methods/
-
Receipt not sent automatically after last updatehttps://wordpress.org/support/topic/receipt-not-sent-automatically-after-last-update/
-
Plugin compatibilityhttps://wordpress.org/support/topic/plugin-compatibility-84/
-
tracking info not transferred to emailhttps://wordpress.org/support/topic/tracking-info-not-transferred-to-email/
-
New order notification has email send errorhttps://wordpress.org/support/topic/new-order-notification-has-email-send-error/
-
PDF Invoice plugin damages the email structure.https://wordpress.org/support/topic/pdf-invoice-plugin-damages-the-email-structure/
-
Incorrect file name (“namepdf” – without “.” before “pdf”)https://wordpress.org/support/topic/incorrect-file-name-namepdf-without-before-pdf/
-
PDF Invoices not generated and not attached to emailshttps://wordpress.org/support/topic/pdf-invoices-not-generated-and-not-attached-to-emails/