PDF's are not being attached to emails

Formidable Forms
October 31, 2025 06:36:44
GeekDimm
Topics: 4
Messages: 10
Hello
.
For some reason, the PDFs are not being attached to the email. I am using the following shortcodes in the email body as below.
We haven't had an issue until now with the only change to the site being the installation of the plugin "Wishlist Member" which I doubt will affect your plugin. The e2pdf plugin and Formidable Forms plugin are both up to date.

October 31, 2025 07:04:17
GeekDimm
Topics: 4
Messages: 10
Also, I can export data to PDF under "E2Pdf"→ "Create PDF"
October 31, 2025 08:48:22
E2Pdf
Topics: 7
Messages: 3617
Support
Hello,

Could you please clarify a few details:

- We noticed that you are also using the [e2pdf-save] shortcode. Does it still save the PDF upon submission?

- Do you have any global actions configured? https://e2pdf.com/docs/actions/global


We would really appreciate your feedback at WordPress.org!
October 31, 2025 09:12:33
GeekDimm
Topics: 4
Messages: 10
Hi there

- Yes the pdf's are being saved in the default location

- No global actions on the templates.

Thanks you
October 31, 2025 09:24:59
E2Pdf
Topics: 7
Messages: 3617
Support
If the PDF is being saved successfully, then the issue may be related to the email sending process or a third-party mail provider, if one is being used. Are you perhaps using any plugins that could affect email sending, such as asynchronous mailing plugins?

We would really appreciate your feedback at WordPress.org!
October 31, 2025 09:27:27
GeekDimm
Topics: 4
Messages: 10
We are using WP Mail SMTP
October 31, 2025 09:38:11
E2Pdf
Topics: 7
Messages: 3617
Support
Could you please check whether the Optimize Email Sending option is enabled: https://wpmailsmtp.com/docs/a-complete-guide-to-miscellaneous-settings/#Optimize_Email_Sending.

If yes, please try to modify your shortcodes:

From:
[e2pdf-attachment id="4"][e2pdf-save id="4"]

To:
[e2pdf-save id="4" attachment="true"]

We would really appreciate your feedback at WordPress.org!
October 31, 2025 11:03:18
GeekDimm
Topics: 4
Messages: 10
Seems to be working now, thank you very much. Would you please mind explaining what the issue was, just so I can understand :)
October 31, 2025 11:11:43
E2Pdf
Topics: 7
Messages: 3617
Support
The issue is related to asynchronous mail sending.

By default, the [e2pdf-attachment] shortcode creates a temporary PDF when the mail action is triggered and removes it once the mail has been successfully sent.

However, when the async mail option is enabled, it initiates a separate background task and notifies Formidable Forms that the email has been sent, even though the actual sending process is still in progress. As a result, the temporary file generated during form submission is deleted before the email is actually sent - which is why the attachment is missing at the time of delivery.

When you use [e2pdf-save id="4" attachment="true"], the PDF is stored permanently on the server and used as an attachment, instead of being created temporarily. This prevents it from being deleted after the form is submitted.

We would really appreciate your feedback at WordPress.org!
October 31, 2025 11:26:54
GeekDimm
Topics: 4
Messages: 10
I understand now & thank you again for the amazing support.
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.